aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-common.c
diff options
context:
space:
mode:
authorNeil Booth <neil@daikokuya.demon.co.uk>2002-05-19 21:53:53 +0000
committerNeil Booth <neil@gcc.gnu.org>2002-05-19 21:53:53 +0000
commite0322d5ca59e5d8657799c2c5453319a89c7a5a5 (patch)
treeee6a881b61f9afa791ff8b9df53883da2b15c9e0 /gcc/c-common.c
parente3227f2c44019c858c2eb6430a0fd3237f245d02 (diff)
downloadgcc-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.c9
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);
}
}