Commit 1aaec916 by Richard Henderson

c-parse.in (extension): Use itype.

        * c-parse.in (extension): Use itype.
        (SAVE_EXT_FLAGS): Don't allocate a tree.
        (RESTORE_EXT_FLAGS): Don't read a tree.

From-SVN: r76676
parent 242d8792
...@@ -204,7 +204,7 @@ do { \ ...@@ -204,7 +204,7 @@ do { \
%type <ttype> init maybeasm %type <ttype> init maybeasm
%type <ttype> asm_operands nonnull_asm_operands asm_operand asm_clobbers %type <ttype> asm_operands nonnull_asm_operands asm_operand asm_clobbers
%type <ttype> maybe_attribute attributes attribute attribute_list attrib %type <ttype> maybe_attribute attributes attribute attribute_list attrib
%type <ttype> any_word extension %type <ttype> any_word
%type <ttype> compstmt compstmt_start compstmt_nostart compstmt_primary_start %type <ttype> compstmt compstmt_start compstmt_nostart compstmt_primary_start
%type <ttype> do_stmt_start poplevel stmt label %type <ttype> do_stmt_start poplevel stmt label
...@@ -230,7 +230,7 @@ do { \ ...@@ -230,7 +230,7 @@ do { \
%type <ttype> parmlist_or_identifiers parmlist_or_identifiers_1 %type <ttype> parmlist_or_identifiers parmlist_or_identifiers_1
%type <ttype> identifiers_or_typenames %type <ttype> identifiers_or_typenames
%type <itype> setspecs setspecs_fp %type <itype> setspecs setspecs_fp extension
%type <location> save_location %type <location> save_location
...@@ -295,15 +295,14 @@ static GTY(()) tree declspec_stack; ...@@ -295,15 +295,14 @@ static GTY(()) tree declspec_stack;
/* For __extension__, save/restore the warning flags which are /* For __extension__, save/restore the warning flags which are
controlled by __extension__. */ controlled by __extension__. */
#define SAVE_EXT_FLAGS() \ #define SAVE_EXT_FLAGS() \
size_int (pedantic \ (pedantic \
| (warn_pointer_arith << 1) \ | (warn_pointer_arith << 1) \
| (warn_traditional << 2) \ | (warn_traditional << 2) \
| (flag_iso << 3)) | (flag_iso << 3))
#define RESTORE_EXT_FLAGS(tval) \ #define RESTORE_EXT_FLAGS(val) \
do { \ do { \
int val = tree_low_cst (tval, 0); \
pedantic = val & 1; \ pedantic = val & 1; \
warn_pointer_arith = (val >> 1) & 1; \ warn_pointer_arith = (val >> 1) & 1; \
warn_traditional = (val >> 2) & 1; \ warn_traditional = (val >> 2) & 1; \
......
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