summaryrefslogtreecommitdiff
path: root/gcc/c-parse.in
diff options
context:
space:
mode:
authorzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2003-07-17 20:12:21 +0000
committerzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2003-07-17 20:12:21 +0000
commit2b652cf39e7fcf5cf9322ca4d8b8203492c6d832 (patch)
tree039fb91b57a3220b33a7ad55edc6af0d1c8d74c3 /gcc/c-parse.in
parent3918f760cfa5723b33f24406fad012d2db34242f (diff)
downloadgcc-2b652cf39e7fcf5cf9322ca4d8b8203492c6d832.tar.gz
* 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-parse.in')
-rw-r--r--gcc/c-parse.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/c-parse.in b/gcc/c-parse.in
index bd26489f7c8..1764558f803 100644
--- a/gcc/c-parse.in
+++ b/gcc/c-parse.in
@@ -1842,7 +1842,7 @@ component_decl:
| declspecs_nosc_nots
{ if (pedantic)
pedwarn ("ISO C forbids member declarations with no members");
- shadow_tag($1);
+ shadow_tag_warned ($1, pedantic);
$$ = NULL_TREE; }
| error
{ $$ = NULL_TREE; }
@@ -2482,7 +2482,7 @@ parmlist:
maybe_attribute
{ pushlevel (0);
clear_parm_order ();
- declare_parm_level (0); }
+ declare_parm_level (); }
parmlist_1
{ $$ = $3;
parmlist_tags_warning ();
@@ -2604,7 +2604,7 @@ parmlist_or_identifiers:
maybe_attribute
{ pushlevel (0);
clear_parm_order ();
- declare_parm_level (1); }
+ declare_parm_level (); }
parmlist_or_identifiers_1
{ $$ = $3;
parmlist_tags_warning ();