diff options
author | Zack Weinberg <zack@wolery.cumb.org> | 2000-01-30 03:44:04 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2000-01-30 03:44:04 +0000 |
commit | b919445a10b54b88bfa5b401d6b75685ccf1f660 (patch) | |
tree | ca7614d034fc89297dcb16bf4569da529f59f194 /gcc/c-parse.in | |
parent | 59495f384361d2931f626d4a537b0b5a5edd6ab7 (diff) | |
download | gcc-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.in | 12 |
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"); } ; |