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
This commit is contained in:
parent
59495f3843
commit
b919445a10
@ -1,3 +1,9 @@
|
|||||||
|
2000-01-29 Zack Weinberg <zack@wolery.cumb.org>
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
2000-01-29 Zack Weinberg <zack@wolery.cumb.org>
|
2000-01-29 Zack Weinberg <zack@wolery.cumb.org>
|
||||||
|
|
||||||
* cpperror.c (cpp_file_line_for_message): If 'line' is zero,
|
* cpperror.c (cpp_file_line_for_message): If 'line' is zero,
|
||||||
|
@ -1265,7 +1265,7 @@ static const short yycheck[] = { 38,
|
|||||||
51, 52, 53, 54
|
51, 52, 53, 54
|
||||||
};
|
};
|
||||||
/* -*-C-*- Note some compilers choke on comments on `#line' lines. */
|
/* -*-C-*- Note some compilers choke on comments on `#line' lines. */
|
||||||
#line 3 "/usr/share/bison.simple"
|
#line 3 "/usr/share/misc/bison.simple"
|
||||||
/* This file comes from bison-1.28. */
|
/* This file comes from bison-1.28. */
|
||||||
|
|
||||||
/* Skeleton output parser for bison,
|
/* Skeleton output parser for bison,
|
||||||
@ -1479,7 +1479,7 @@ __yy_memcpy (char *to, char *from, unsigned int count)
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#line 217 "/usr/share/bison.simple"
|
#line 217 "/usr/share/misc/bison.simple"
|
||||||
|
|
||||||
/* The user can define YYPARSE_PARAM as the name of an argument to be passed
|
/* The user can define YYPARSE_PARAM as the name of an argument to be passed
|
||||||
into yyparse. The argument should have type void *.
|
into yyparse. The argument should have type void *.
|
||||||
@ -3826,7 +3826,7 @@ case 407:
|
|||||||
break;}
|
break;}
|
||||||
}
|
}
|
||||||
/* the action file gets copied in in place of this dollarsign */
|
/* the action file gets copied in in place of this dollarsign */
|
||||||
#line 543 "/usr/share/bison.simple"
|
#line 543 "/usr/share/misc/bison.simple"
|
||||||
|
|
||||||
yyvsp -= yylen;
|
yyvsp -= yylen;
|
||||||
yyssp -= yylen;
|
yyssp -= yylen;
|
||||||
|
@ -519,7 +519,7 @@ cast_expr:
|
|||||||
tree type = $2;
|
tree type = $2;
|
||||||
finish_init ();
|
finish_init ();
|
||||||
|
|
||||||
if (pedantic && ! flag_isoc9x)
|
if (pedantic && ! flag_isoc99)
|
||||||
pedwarn ("ANSI C forbids constructor expressions");
|
pedwarn ("ANSI C forbids constructor expressions");
|
||||||
if (TYPE_NAME (type) != 0)
|
if (TYPE_NAME (type) != 0)
|
||||||
{
|
{
|
||||||
@ -1403,8 +1403,8 @@ parm_declarator:
|
|||||||
ifc
|
ifc
|
||||||
| parm_declarator '[' '*' ']' %prec '.'
|
| parm_declarator '[' '*' ']' %prec '.'
|
||||||
{ $$ = build_nt (ARRAY_REF, $1, NULL_TREE);
|
{ $$ = build_nt (ARRAY_REF, $1, NULL_TREE);
|
||||||
if (! flag_isoc9x)
|
if (! flag_isoc99)
|
||||||
error ("`[*]' in parameter declaration only allowed in ISO C 9x");
|
error ("`[*]' in parameter declaration only allowed in ISO C 99");
|
||||||
}
|
}
|
||||||
end ifc
|
end ifc
|
||||||
| parm_declarator '[' expr ']' %prec '.'
|
| parm_declarator '[' expr ']' %prec '.'
|
||||||
@ -1439,8 +1439,8 @@ notype_declarator:
|
|||||||
ifc
|
ifc
|
||||||
| notype_declarator '[' '*' ']' %prec '.'
|
| notype_declarator '[' '*' ']' %prec '.'
|
||||||
{ $$ = build_nt (ARRAY_REF, $1, NULL_TREE);
|
{ $$ = build_nt (ARRAY_REF, $1, NULL_TREE);
|
||||||
if (! flag_isoc9x)
|
if (! flag_isoc99)
|
||||||
error ("`[*]' in parameter declaration only allowed in ISO C 9x");
|
error ("`[*]' in parameter declaration only allowed in ISO C 99");
|
||||||
}
|
}
|
||||||
end ifc
|
end ifc
|
||||||
| notype_declarator '[' expr ']' %prec '.'
|
| notype_declarator '[' expr ']' %prec '.'
|
||||||
@ -1523,7 +1523,7 @@ maybecomma:
|
|||||||
maybecomma_warn:
|
maybecomma_warn:
|
||||||
/* empty */
|
/* empty */
|
||||||
| ','
|
| ','
|
||||||
{ if (pedantic && ! flag_isoc9x)
|
{ if (pedantic && ! flag_isoc99)
|
||||||
pedwarn ("comma at end of enumerator list"); }
|
pedwarn ("comma at end of enumerator list"); }
|
||||||
;
|
;
|
||||||
|
|
||||||
|
@ -2571,7 +2571,7 @@ case 65:
|
|||||||
tree type = yyvsp[-5].ttype;
|
tree type = yyvsp[-5].ttype;
|
||||||
finish_init ();
|
finish_init ();
|
||||||
|
|
||||||
if (pedantic && ! flag_isoc9x)
|
if (pedantic && ! flag_isoc99)
|
||||||
pedwarn ("ANSI C forbids constructor expressions");
|
pedwarn ("ANSI C forbids constructor expressions");
|
||||||
if (TYPE_NAME (type) != 0)
|
if (TYPE_NAME (type) != 0)
|
||||||
{
|
{
|
||||||
@ -3542,7 +3542,7 @@ case 267:
|
|||||||
break;}
|
break;}
|
||||||
case 271:
|
case 271:
|
||||||
#line 1463 "objc-parse.y"
|
#line 1463 "objc-parse.y"
|
||||||
{ if (pedantic && ! flag_isoc9x)
|
{ if (pedantic && ! flag_isoc99)
|
||||||
pedwarn ("comma at end of enumerator list"); ;
|
pedwarn ("comma at end of enumerator list"); ;
|
||||||
break;}
|
break;}
|
||||||
case 272:
|
case 272:
|
||||||
|
@ -500,7 +500,7 @@ cast_expr:
|
|||||||
tree type = $2;
|
tree type = $2;
|
||||||
finish_init ();
|
finish_init ();
|
||||||
|
|
||||||
if (pedantic && ! flag_isoc9x)
|
if (pedantic && ! flag_isoc99)
|
||||||
pedwarn ("ANSI C forbids constructor expressions");
|
pedwarn ("ANSI C forbids constructor expressions");
|
||||||
if (TYPE_NAME (type) != 0)
|
if (TYPE_NAME (type) != 0)
|
||||||
{
|
{
|
||||||
@ -1460,7 +1460,7 @@ maybecomma:
|
|||||||
maybecomma_warn:
|
maybecomma_warn:
|
||||||
/* empty */
|
/* empty */
|
||||||
| ','
|
| ','
|
||||||
{ if (pedantic && ! flag_isoc9x)
|
{ if (pedantic && ! flag_isoc99)
|
||||||
pedwarn ("comma at end of enumerator list"); }
|
pedwarn ("comma at end of enumerator list"); }
|
||||||
;
|
;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user