This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
un-break objc
- To: gcc-patches at gcc dot gnu dot org
- Subject: un-break objc
- From: Zack Weinberg <zack at wolery dot cumb dot org>
- Date: Sat, 29 Jan 2000 19:43:47 -0800
Ulrich forgot that c-parse.y is a generated file, so the objc front
end gets link errors. I've committed this as an obvious bugfix.
(ObjC is still utterly hosed on i386 because it wants to use
BIGGEST_FIELD_ALIGNMENT, and that depends on target_flags. Bleah.)
zw
* 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.
===================================================================
Index: c-parse.in
--- c-parse.in 2000/01/25 17:13:14 1.31
+++ c-parse.in 2000/01/30 03:43:09
@@ -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"); }
;