Commit 5137bd4f by Richard Henderson Committed by Richard Henderson

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
parent 3c0a049e
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> 2001-12-21 Kazu Hirata <kazu@hxi.com>
* doc/passes.texi: Fix a typo. * doc/passes.texi: Fix a typo.
......
...@@ -261,13 +261,17 @@ static tree declspec_stack; ...@@ -261,13 +261,17 @@ static 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_WARN_FLAGS() \ #define SAVE_WARN_FLAGS() \
size_int (pedantic | (warn_pointer_arith << 1)) size_int (pedantic \
#define RESTORE_WARN_FLAGS(tval) \ | (warn_pointer_arith << 1) \
do { \ | (warn_traditional << 2))
int val = tree_low_cst (tval, 0); \
pedantic = val & 1; \ #define RESTORE_WARN_FLAGS(tval) \
warn_pointer_arith = (val >> 1) & 1; \ do { \
int val = tree_low_cst (tval, 0); \
pedantic = val & 1; \
warn_pointer_arith = (val >> 1) & 1; \
warn_traditional = (val >> 2) & 1; \
} while (0) } while (0)
ifobjc ifobjc
...@@ -2620,7 +2624,8 @@ extension: ...@@ -2620,7 +2624,8 @@ extension:
EXTENSION EXTENSION
{ $$ = SAVE_WARN_FLAGS(); { $$ = SAVE_WARN_FLAGS();
pedantic = 0; pedantic = 0;
warn_pointer_arith = 0; } warn_pointer_arith = 0;
warn_traditional = 0; }
; ;
ifobjc ifobjc
......
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