aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-common.c
diff options
context:
space:
mode:
authorNeil Booth <neil@daikokuya.co.uk>2002-08-01 06:25:06 +0000
committerNeil Booth <neil@gcc.gnu.org>2002-08-01 06:25:06 +0000
commitabecfc8f7b738d589ff9cb67655b13262a79fb0a (patch)
tree313155df97996072fed86db9c94a225526e987d9 /gcc/c-common.c
parent4078b403a7dc806f4521f3600b524bed55309515 (diff)
downloadgcc-abecfc8f7b738d589ff9cb67655b13262a79fb0a.zip
gcc-abecfc8f7b738d589ff9cb67655b13262a79fb0a.tar.gz
gcc-abecfc8f7b738d589ff9cb67655b13262a79fb0a.tar.bz2
c-common.c (cb_register_builtins): If C++, define __EXCEPTIONS, __DEPRECATED and __GXX_ABI_VERSION as appropriate.
* c-common.c (cb_register_builtins): If C++, define __EXCEPTIONS, __DEPRECATED and __GXX_ABI_VERSION as appropriate. * gcc.c (cpp_unique_options): Remove __GXX_ABI_VERSION. cp: * lang-specs.h: Simplify in accordance with new code in c-common.c. From-SVN: r55924
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r--gcc/c-common.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c
index 7eb391a..784cc64 100644
--- a/gcc/c-common.c
+++ b/gcc/c-common.c
@@ -4728,6 +4728,11 @@ cb_register_builtins (pfile)
cpp_define (pfile, "__GXX_WEAK__=1");
else
cpp_define (pfile, "__GXX_WEAK__=0");
+ if (flag_exceptions)
+ cpp_define (pfile, "__EXCEPTIONS");
+ if (warn_deprecated)
+ cpp_define (pfile, "__DEPRECATED");
+ cpp_define (pfile, "__GXX_ABI_VERSION__=101");
}
/* libgcc needs to know this. */