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/cppinit.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/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), |