Commit fd65a4c1 by Mark Mitchell

parse.y (pedantic): Give it itype.

	* parse.y (pedantic): Give it itype.  Adjust usage accordingly
	throughout.

From-SVN: r28678
parent 6eabb241
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -231,6 +231,8 @@ empty_parms () ...@@ -231,6 +231,8 @@ empty_parms ()
%type <ftype> typed_declspecs1 type_specifier_seq nonempty_cv_qualifiers %type <ftype> typed_declspecs1 type_specifier_seq nonempty_cv_qualifiers
%type <ftype> structsp typespecqual_reserved parm named_parm full_parm %type <ftype> structsp typespecqual_reserved parm named_parm full_parm
%type <itype> extension
/* C++ extensions */ /* C++ extensions */
%token <ttype> PTYPENAME %token <ttype> PTYPENAME
%token <ttype> PRE_PARSED_FUNCTION_DECL EXTERN_LANG_STRING ALL %token <ttype> PRE_PARSED_FUNCTION_DECL EXTERN_LANG_STRING ALL
...@@ -370,7 +372,7 @@ extdefs_opt: ...@@ -370,7 +372,7 @@ extdefs_opt:
extension: extension:
EXTENSION EXTENSION
{ $<itype>$ = pedantic; { $$ = pedantic;
pedantic = 0; } pedantic = 0; }
; ;
...@@ -416,7 +418,7 @@ extdef: ...@@ -416,7 +418,7 @@ extdef:
{ do_toplevel_using_decl ($1); } { do_toplevel_using_decl ($1); }
| using_directive | using_directive
| extension extdef | extension extdef
{ pedantic = $<itype>1; } { pedantic = $1; }
; ;
namespace_alias: namespace_alias:
...@@ -584,7 +586,7 @@ template_extdef: ...@@ -584,7 +586,7 @@ template_extdef:
{ if (pending_inlines) do_pending_inlines (); { if (pending_inlines) do_pending_inlines ();
pop_lang_context (); } pop_lang_context (); }
| extension template_extdef | extension template_extdef
{ pedantic = $<itype>1; } { pedantic = $1; }
; ;
template_datadef: template_datadef:
...@@ -1082,7 +1084,7 @@ unary_expr: ...@@ -1082,7 +1084,7 @@ unary_expr:
/* __extension__ turns off -pedantic for following primary. */ /* __extension__ turns off -pedantic for following primary. */
| extension cast_expr %prec UNARY | extension cast_expr %prec UNARY
{ $$ = $2; { $$ = $2;
pedantic = $<itype>1; } pedantic = $1; }
| '*' cast_expr %prec UNARY | '*' cast_expr %prec UNARY
{ $$ = build_x_indirect_ref ($2, "unary *"); } { $$ = build_x_indirect_ref ($2, "unary *"); }
| '&' cast_expr %prec UNARY | '&' cast_expr %prec UNARY
...@@ -1660,7 +1662,7 @@ decl: ...@@ -1660,7 +1662,7 @@ decl:
| declmods ';' | declmods ';'
{ warning ("empty declaration"); } { warning ("empty declaration"); }
| extension decl | extension decl
{ pedantic = $<itype>1; } { pedantic = $1; }
; ;
/* Any kind of declarator (thus, all declarators allowed /* Any kind of declarator (thus, all declarators allowed
...@@ -2427,7 +2429,7 @@ component_decl: ...@@ -2427,7 +2429,7 @@ component_decl:
{ $$ = NULL_TREE; } { $$ = NULL_TREE; }
| extension component_decl | extension component_decl
{ $$ = $2; { $$ = $2;
pedantic = $<itype>1; } pedantic = $1; }
| template_header component_decl | template_header component_decl
{ {
if ($2) if ($2)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment