aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-lex.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/c-lex.c')
-rw-r--r--gcc/c-lex.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/c-lex.c b/gcc/c-lex.c
index 5585a16..bb09b88 100644
--- a/gcc/c-lex.c
+++ b/gcc/c-lex.c
@@ -997,7 +997,12 @@ c_lex (value)
goto retry;
case CPP_NAME:
- *value = get_identifier ((const char *) NODE_NAME (tok.val.node));
+ {
+ tree node = HT_IDENT_TO_GCC_IDENT (HT_NODE (tok.val.node));
+ if (TREE_CODE (node) != IDENTIFIER_NODE)
+ make_identifier (node);
+ *value = node;
+ }
break;
case CPP_INT: