c-cppbuiltin.c (c_cpp_builtins): Do not define __GXX_WEAK__ to 1 if !flag_weak.
authorMark Mitchell <mark@codesourcery.com>
Sun, 1 May 2005 20:30:40 +0000 (20:30 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Sun, 1 May 2005 20:30:40 +0000 (20:30 +0000)
commitaee7846e9060634b4aa75155423a5dffcc616db8
treeb79d0c9275e02095576cbc327005a01a02258d58
parent3a57c6cb0c7e1ac5b177646328dbfa37e77bd364
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
gcc/ChangeLog
gcc/c-cppbuiltin.c
gcc/doc/cpp.texi
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp/weak.C [new file with mode: 0644]