diff options
author | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-02-04 08:29:46 +0000 |
---|---|---|
committer | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-02-04 08:29:46 +0000 |
commit | 21419a5e9e736f80c0a3494249260bd3dd7a7f13 (patch) | |
tree | 815541fa1776fda28adf6a72453ad1d34ecb1aaf /gcc/cppmacro.c | |
parent | 3b44c686f2c88d55af068cb05886129fe331d3d4 (diff) | |
download | gcc-21419a5e9e736f80c0a3494249260bd3dd7a7f13.tar.gz |
* cppinit.c (BC): New macro.
(builtin_array): Add __GXX_WEAK__.
* cpplib.h (builtin_type): Add BT_WEAK.
* cppmacro.c (builtin_macro): Handle BT_WEAK.
* defaults.h (SUPPORTS_ONE_ONLY): Define.
* varasm.c (SUPPORTS_ONE_ONLY): Do not define.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39436 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cppmacro.c')
-rw-r--r-- | gcc/cppmacro.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/cppmacro.c b/gcc/cppmacro.c index afe60dce877..8e051a9c5b0 100644 --- a/gcc/cppmacro.c +++ b/gcc/cppmacro.c @@ -216,6 +216,10 @@ builtin_macro (pfile, token) *token = node->value.builtin == BT_DATE ? pfile->date: pfile->time; break; + case BT_WEAK: + make_number_token (pfile, token, SUPPORTS_ONE_ONLY); + break; + default: cpp_ice (pfile, "invalid builtin macro \"%s\"", node->name); break; |