diff options
author | Mark Mitchell <mark@codesourcery.com> | 2005-05-01 20:30:40 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2005-05-01 20:30:40 +0000 |
commit | aee7846e9060634b4aa75155423a5dffcc616db8 (patch) | |
tree | b79d0c9275e02095576cbc327005a01a02258d58 /gcc/c-cppbuiltin.c | |
parent | 3a57c6cb0c7e1ac5b177646328dbfa37e77bd364 (diff) | |
download | gcc-aee7846e9060634b4aa75155423a5dffcc616db8.zip gcc-aee7846e9060634b4aa75155423a5dffcc616db8.tar.gz gcc-aee7846e9060634b4aa75155423a5dffcc616db8.tar.bz2 |
c-cppbuiltin.c (c_cpp_builtins): Do not define __GXX_WEAK__ to 1 if !flag_weak.
* c-cppbuiltin.c (c_cpp_builtins): Do not define __GXX_WEAK__ to 1
if !flag_weak.
* doc/cpp.texi (__DEPRECATED): Document.
(__EXCEPTIONS): Likewise.
(__GXX_WEAK__): Likewise.
* g++.dg/cpp/weak.C: New test.
From-SVN: r99080
Diffstat (limited to 'gcc/c-cppbuiltin.c')
-rw-r--r-- | gcc/c-cppbuiltin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-cppbuiltin.c b/gcc/c-cppbuiltin.c index 06904db..bb656f4 100644 --- a/gcc/c-cppbuiltin.c +++ b/gcc/c-cppbuiltin.c @@ -328,7 +328,7 @@ c_cpp_builtins (cpp_reader *pfile) if (c_dialect_cxx ()) { - if (SUPPORTS_ONE_ONLY) + if (flag_weak && SUPPORTS_ONE_ONLY) cpp_define (pfile, "__GXX_WEAK__=1"); else cpp_define (pfile, "__GXX_WEAK__=0"); |