diff options
author | Mark Mitchell <mark@codesourcery.com> | 2001-02-04 08:29:46 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2001-02-04 08:29:46 +0000 |
commit | 1ca894a0e403de4be67483069f8b59059ad53a31 (patch) | |
tree | 815541fa1776fda28adf6a72453ad1d34ecb1aaf /gcc/cppinit.c | |
parent | 52b357ea122caec736f311fecec2b3b9a0296da9 (diff) | |
download | gcc-1ca894a0e403de4be67483069f8b59059ad53a31.tar.gz |
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/cppinit.c')
-rw-r--r-- | gcc/cppinit.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cppinit.c b/gcc/cppinit.c index 8319ad987fb..845d35b7fd1 100644 --- a/gcc/cppinit.c +++ b/gcc/cppinit.c @@ -643,6 +643,7 @@ struct builtin #define OPERATOR 0x10 #define B(n, t) { U n, 0, t, 0, BUILTIN, sizeof n - 1 } +#define BC(n, t) { U n, 0, t, 0, BUILTIN | CPLUS, sizeof n - 1 } #define C(n, v) { U n, v, 0, 0, 0, sizeof n - 1 } #define X(n, f) { U n, 0, 0, 0, f, sizeof n - 1 } #define O(n, c, f) { U n, 0, 0, c, OPERATOR | f, sizeof n - 1 } @@ -655,6 +656,7 @@ static const struct builtin builtin_array[] = B("__LINE__", BT_SPECLINE), B("__INCLUDE_LEVEL__", BT_INCLUDE_LEVEL), B("__STDC__", BT_STDC), + BC("__GXX_WEAK__", BT_WEAK), X("__VERSION__", VERS), X("__USER_LABEL_PREFIX__", ULP), |