aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-parse.in
diff options
context:
space:
mode:
authorZack Weinberg <zack@wolery.cumb.org>2000-01-30 03:44:04 +0000
committerZack Weinberg <zack@gcc.gnu.org>2000-01-30 03:44:04 +0000
commitb919445a10b54b88bfa5b401d6b75685ccf1f660 (patch)
treeca7614d034fc89297dcb16bf4569da529f59f194 /gcc/c-parse.in
parent59495f384361d2931f626d4a537b0b5a5edd6ab7 (diff)
downloadgcc-b919445a10b54b88bfa5b401d6b75685ccf1f660.zip
gcc-b919445a10b54b88bfa5b401d6b75685ccf1f660.tar.gz
gcc-b919445a10b54b88bfa5b401d6b75685ccf1f660.tar.bz2
c-parse.in: Apply Ulrich's changes from c-parse.y.
* c-parse.in: Apply Ulrich's changes from c-parse.y. * c-parse.y, objc/objc-parse.y, c-parse.c, objc/objc-parse.c: Regenerate. From-SVN: r31698
Diffstat (limited to 'gcc/c-parse.in')
-rw-r--r--gcc/c-parse.in12
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/c-parse.in b/gcc/c-parse.in
index e5f876a..166768d 100644
--- a/gcc/c-parse.in
+++ b/gcc/c-parse.in
@@ -519,7 +519,7 @@ cast_expr:
tree type = $2;
finish_init ();
- if (pedantic && ! flag_isoc9x)
+ if (pedantic && ! flag_isoc99)
pedwarn ("ANSI C forbids constructor expressions");
if (TYPE_NAME (type) != 0)
{
@@ -1403,8 +1403,8 @@ parm_declarator:
ifc
| parm_declarator '[' '*' ']' %prec '.'
{ $$ = build_nt (ARRAY_REF, $1, NULL_TREE);
- if (! flag_isoc9x)
- error ("`[*]' in parameter declaration only allowed in ISO C 9x");
+ if (! flag_isoc99)
+ error ("`[*]' in parameter declaration only allowed in ISO C 99");
}
end ifc
| parm_declarator '[' expr ']' %prec '.'
@@ -1439,8 +1439,8 @@ notype_declarator:
ifc
| notype_declarator '[' '*' ']' %prec '.'
{ $$ = build_nt (ARRAY_REF, $1, NULL_TREE);
- if (! flag_isoc9x)
- error ("`[*]' in parameter declaration only allowed in ISO C 9x");
+ if (! flag_isoc99)
+ error ("`[*]' in parameter declaration only allowed in ISO C 99");
}
end ifc
| notype_declarator '[' expr ']' %prec '.'
@@ -1523,7 +1523,7 @@ maybecomma:
maybecomma_warn:
/* empty */
| ','
- { if (pedantic && ! flag_isoc9x)
+ { if (pedantic && ! flag_isoc99)
pedwarn ("comma at end of enumerator list"); }
;