diff options
author | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-07-17 20:12:21 +0000 |
---|---|---|
committer | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-07-17 20:12:21 +0000 |
commit | 2b652cf39e7fcf5cf9322ca4d8b8203492c6d832 (patch) | |
tree | 039fb91b57a3220b33a7ad55edc6af0d1c8d74c3 /gcc/c-pragma.c | |
parent | 3918f760cfa5723b33f24406fad012d2db34242f (diff) | |
download | ppe42-gcc-2b652cf39e7fcf5cf9322ca4d8b8203492c6d832.tar.gz ppe42-gcc-2b652cf39e7fcf5cf9322ca4d8b8203492c6d832.zip |
* c-decl.c: Fix typos in several comments. Remove all
#if 0 blocks; reindent as needed. Remove unused argument
to declare_parm_level; all callers changed.
* c-parse.in: Update calls to declare_parm_level. Avoid
issuing a double warning in some circumstances.
* c-typeck.c: Update calls to declare_parm_level.
* c-tree.h: Update prototype of declare_parm_level.
* c-pragma.c (apply_pragma_weak): Don't complain about a
redundant #pragma weak.
* objc/objc-act.c (forward_declare_categories,
build_selector_reference_decl, build_class_reference_decl,
build_objc_string_decl, synth_forward_declarations,
build_protocol_reference): Set TREE_PUBLIC on synthetic
forward decl to 0, consistent with eventual definition.
Correct comments to match.
cp:
* pt.c (get_bindings): Make definition consistent with
forward declaration.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69519 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-pragma.c')
-rw-r--r-- | gcc/c-pragma.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/c-pragma.c b/gcc/c-pragma.c index 71b34096b77..bd53c806dd7 100644 --- a/gcc/c-pragma.c +++ b/gcc/c-pragma.c @@ -273,6 +273,7 @@ apply_pragma_weak (tree decl, tree value) } if (SUPPORTS_WEAK && DECL_EXTERNAL (decl) && TREE_USED (decl) + && !DECL_WEAK (decl) /* don't complain about a redundant #pragma */ && TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl))) warning_with_decl (decl, "applying #pragma weak `%s' after first use results in unspecified behavior"); |