summaryrefslogtreecommitdiff
path: root/gcc/cppmacro.c
diff options
context:
space:
mode:
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 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;