diff options
author | Neil Booth <neil@daikokuya.demon.co.uk> | 2002-05-19 21:53:53 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2002-05-19 21:53:53 +0000 |
commit | e0322d5ca59e5d8657799c2c5453319a89c7a5a5 (patch) | |
tree | ee6a881b61f9afa791ff8b9df53883da2b15c9e0 /gcc/c-common.c | |
parent | e3227f2c44019c858c2eb6430a0fd3237f245d02 (diff) | |
download | gcc-e0322d5ca59e5d8657799c2c5453319a89c7a5a5.zip gcc-e0322d5ca59e5d8657799c2c5453319a89c7a5a5.tar.gz gcc-e0322d5ca59e5d8657799c2c5453319a89c7a5a5.tar.bz2 |
c-common.c (preprocessing_asm): New macro.
* c-common.c (preprocessing_asm): New macro.
* c-lex.h (builtin_define, builtin_assert): Use pfile.
doc:
* tm.texi: Update.
config/alpha:
* alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
(CPP_SPEC): Simplify.
(TARGET_CPU_CPP_BUILTINS): Update.
* freebsd.h (TARGET_OS_CPP_BUILTINS): New.
(CPP_SPEC): Simplify.
* linux.h (CPLUSPLUS_CPP_SPEC): Remove.
(TARGET_OS_CPP_BUILTINS): Update.
* osf.h (CPP_XFLOAT_SPEC): Kill.
(TARGET_OS_CPP_BUILTINS): Update.
(CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
* osf5.h (CPP_XFLOAT_SPEC): Kill.
* vms.h (CPP_SUBTARGET_SPEC): Kill.
(TARGET_OS_CPP_BUILTINS): Update.
From-SVN: r53641
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r-- | gcc/c-common.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c index d851c27..b9658da 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -4374,6 +4374,7 @@ cb_register_builtins (pfile) /* A straightforward target hook doesn't work, because of problems linking that hook's body when part of non-C front ends. */ + #define preprocessing_asm_p() (cpp_get_options (pfile)->lang == CLK_ASM) TARGET_CPU_CPP_BUILTINS (); TARGET_OS_CPP_BUILTINS (); } @@ -4407,10 +4408,6 @@ builtin_define_std (macro) /* If it was in user's namespace... */ if (p != buff + 2) { - /* Define the original macro if permitted. */ - if (!flag_iso) - cpp_define (parse_in, macro); - /* Define the macro with leading and following __. */ if (q[-1] != '_') *q++ = '_'; @@ -4418,6 +4415,10 @@ builtin_define_std (macro) *q++ = '_'; *q = '\0'; cpp_define (parse_in, p); + + /* Finally, define the original macro if permitted. */ + if (!flag_iso) + cpp_define (parse_in, macro); } } |