summaryrefslogtreecommitdiff
path: root/gcc/c-parse.in
diff options
context:
space:
mode:
authorRichard Henderson <rth@gcc.gnu.org>2004-01-26 15:02:04 -0800
committerRichard Henderson <rth@gcc.gnu.org>2004-01-26 15:02:04 -0800
commit1aaec916ad5f7a37060a2bee39df50f158f4013e (patch)
tree3f2fefec4b207ce31997c6b012e2b9278dcce462 /gcc/c-parse.in
parent242d8792161a2f70e0fe33fb7e2109ec86f2bb8a (diff)
downloadgcc-1aaec916ad5f7a37060a2bee39df50f158f4013e.tar.gz
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
Diffstat (limited to 'gcc/c-parse.in')
-rw-r--r--gcc/c-parse.in17
1 files changed, 8 insertions, 9 deletions
diff --git a/gcc/c-parse.in b/gcc/c-parse.in
index 3804ea5460b..59dc9b5cfd0 100644
--- a/gcc/c-parse.in
+++ b/gcc/c-parse.in
@@ -204,7 +204,7 @@ do { \
%type <ttype> init maybeasm
%type <ttype> asm_operands nonnull_asm_operands asm_operand asm_clobbers
%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> do_stmt_start poplevel stmt label
@@ -230,7 +230,7 @@ do { \
%type <ttype> parmlist_or_identifiers parmlist_or_identifiers_1
%type <ttype> identifiers_or_typenames
-%type <itype> setspecs setspecs_fp
+%type <itype> setspecs setspecs_fp extension
%type <location> save_location
@@ -295,15 +295,14 @@ static GTY(()) tree declspec_stack;
/* For __extension__, save/restore the warning flags which are
controlled by __extension__. */
-#define SAVE_EXT_FLAGS() \
- size_int (pedantic \
- | (warn_pointer_arith << 1) \
- | (warn_traditional << 2) \
- | (flag_iso << 3))
+#define SAVE_EXT_FLAGS() \
+ (pedantic \
+ | (warn_pointer_arith << 1) \
+ | (warn_traditional << 2) \
+ | (flag_iso << 3))
-#define RESTORE_EXT_FLAGS(tval) \
+#define RESTORE_EXT_FLAGS(val) \
do { \
- int val = tree_low_cst (tval, 0); \
pedantic = val & 1; \
warn_pointer_arith = (val >> 1) & 1; \
warn_traditional = (val >> 2) & 1; \