From 101e59f49237c5acbf25580d8f7f2f16b0e10f9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Tue, 18 Jan 2000 00:01:06 +0000 Subject: c-parse.in (SAVE_WARN_FLAGS): Create an INTEGER_CST. * c-parse.in (SAVE_WARN_FLAGS): Create an INTEGER_CST. (RESTORE_WARN_FLAGS): Unpack it. Change semantic type of extension to ttype. * c-common.c (split_specs_attrs): Expect an INTEGER_CST. * c-parse.y, c-parse.c, objc/objc-parse.y, objc/objc-parse.c: Regenerate. From-SVN: r31478 --- gcc/c-parse.in | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'gcc/c-parse.in') diff --git a/gcc/c-parse.in b/gcc/c-parse.in index f3ee7e5..80ed5c3 100644 --- a/gcc/c-parse.in +++ b/gcc/c-parse.in @@ -166,7 +166,7 @@ end ifc %type init maybeasm %type asm_operands nonnull_asm_operands asm_operand asm_clobbers %type maybe_attribute attributes attribute attribute_list attrib -%type any_word +%type any_word extension %type compstmt compstmt_nostart compstmt_primary_start @@ -185,8 +185,6 @@ end ifc %type parmlist_or_identifiers parmlist_or_identifiers_1 %type identifiers_or_typenames -%type extension - %type setspecs %type lineno_stmt_or_label lineno_stmt_or_labels stmt_or_label @@ -231,9 +229,11 @@ static int undeclared_variable_notice; /* For __extension__, save/restore the warning flags which are controlled by __extension__. */ -#define SAVE_WARN_FLAGS() (pedantic | (warn_pointer_arith << 1)) -#define RESTORE_WARN_FLAGS(val) \ +#define SAVE_WARN_FLAGS() \ + build_int_2 (pedantic | (warn_pointer_arith << 1), 0) +#define RESTORE_WARN_FLAGS(tval) \ do { \ + int val = TREE_INT_CST_LOW (tval); \ pedantic = val & 1; \ warn_pointer_arith = (val >> 1) & 1; \ } while (0) -- cgit v1.1