diff options
author | Zack Weinberg <zack@codesourcery.com> | 2003-07-17 20:12:21 +0000 |
---|---|---|
committer | Zack Weinberg <zack@codesourcery.com> | 2003-07-17 20:12:21 +0000 |
commit | df8710e8e12cb4eada831b48ec0b5f69b862024f (patch) | |
tree | 039fb91b57a3220b33a7ad55edc6af0d1c8d74c3 /gcc/c-pragma.c | |
parent | 9ec0c0c7ce6992908b285b6f9554b7fa08ac178a (diff) |
* 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: https://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"); |