diff options
author | Zack Weinberg <zack@gcc.gnu.org> | 2003-07-17 20:12:21 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2003-07-17 20:12:21 +0000 |
commit | eb1dfbb2fb30682e7048332e2c99187497db6c02 (patch) | |
tree | 039fb91b57a3220b33a7ad55edc6af0d1c8d74c3 /gcc/c-pragma.c | |
parent | 78ff95dc17c157fafe2169b9e0bb47c2417dce85 (diff) | |
download | gcc-eb1dfbb2fb30682e7048332e2c99187497db6c02.zip gcc-eb1dfbb2fb30682e7048332e2c99187497db6c02.tar.gz gcc-eb1dfbb2fb30682e7048332e2c99187497db6c02.tar.bz2 |
c-decl.c: Fix typos in several comments.
* 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.
From-SVN: r69519
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 71b3409..bd53c80 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"); |