aboutsummaryrefslogtreecommitdiff
path: root/gcc/cppmacro.c
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2001-02-04 08:29:46 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2001-02-04 08:29:46 +0000
commit1ca894a0e403de4be67483069f8b59059ad53a31 (patch)
tree815541fa1776fda28adf6a72453ad1d34ecb1aaf /gcc/cppmacro.c
parent52b357ea122caec736f311fecec2b3b9a0296da9 (diff)
downloadgcc-1ca894a0e403de4be67483069f8b59059ad53a31.zip
gcc-1ca894a0e403de4be67483069f8b59059ad53a31.tar.gz
gcc-1ca894a0e403de4be67483069f8b59059ad53a31.tar.bz2
cppinit.c (BC): New macro.
* 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. From-SVN: r39436
Diffstat (limited to 'gcc/cppmacro.c')
-rw-r--r--gcc/cppmacro.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/cppmacro.c b/gcc/cppmacro.c
index afe60dc..8e051a9 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;