aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2001-12-21 10:31:11 -0800
committerRichard Henderson <rth@gcc.gnu.org>2001-12-21 10:31:11 -0800
commit5137bd4f868d44e010dd5be0c0164ef5713af10c (patch)
treee8d2fac222391ab2a5e2c3d58a9c6c1716323440
parent3c0a049e581d0e4627d391cbcc98a92b7fcb4ae5 (diff)
downloadgcc-5137bd4f868d44e010dd5be0c0164ef5713af10c.zip
gcc-5137bd4f868d44e010dd5be0c0164ef5713af10c.tar.gz
gcc-5137bd4f868d44e010dd5be0c0164ef5713af10c.tar.bz2
c-parse.in (SAVE_WARN_FLAGS): Save warn_traditional.
* c-parse.in (SAVE_WARN_FLAGS): Save warn_traditional. (RESTORE_WARN_FLAGS): Restore it. (extension): Zero warn_traditional. From-SVN: r48247
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/c-parse.in21
2 files changed, 19 insertions, 8 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 037058b..739757b 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2001-12-21 Richard Henderson <rth@redhat.com>
+
+ * c-parse.in (SAVE_WARN_FLAGS): Save warn_traditional.
+ (RESTORE_WARN_FLAGS): Restore it.
+ (extension): Zero warn_traditional.
+
2001-12-21 Kazu Hirata <kazu@hxi.com>
* doc/passes.texi: Fix a typo.
diff --git a/gcc/c-parse.in b/gcc/c-parse.in
index 5132b3f..889425e 100644
--- a/gcc/c-parse.in
+++ b/gcc/c-parse.in
@@ -261,13 +261,17 @@ static tree declspec_stack;
/* For __extension__, save/restore the warning flags which are
controlled by __extension__. */
-#define SAVE_WARN_FLAGS() \
- size_int (pedantic | (warn_pointer_arith << 1))
-#define RESTORE_WARN_FLAGS(tval) \
- do { \
- int val = tree_low_cst (tval, 0); \
- pedantic = val & 1; \
- warn_pointer_arith = (val >> 1) & 1; \
+#define SAVE_WARN_FLAGS() \
+ size_int (pedantic \
+ | (warn_pointer_arith << 1) \
+ | (warn_traditional << 2))
+
+#define RESTORE_WARN_FLAGS(tval) \
+ do { \
+ int val = tree_low_cst (tval, 0); \
+ pedantic = val & 1; \
+ warn_pointer_arith = (val >> 1) & 1; \
+ warn_traditional = (val >> 2) & 1; \
} while (0)
ifobjc
@@ -2620,7 +2624,8 @@ extension:
EXTENSION
{ $$ = SAVE_WARN_FLAGS();
pedantic = 0;
- warn_pointer_arith = 0; }
+ warn_pointer_arith = 0;
+ warn_traditional = 0; }
;
ifobjc