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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/c-lex.c b/gcc/c-lex.c
index 34dc5e6..79002f3 100644
--- a/gcc/c-lex.c
+++ b/gcc/c-lex.c
@@ -32,6 +32,7 @@ Boston, MA 02111-1307, USA. */
#include "c-pragma.h"
#include "toplev.h"
#include "intl.h"
+#include "ggc.h"
/* MULTIBYTE_CHARS support only works for native compilers.
??? Ideally what we want is to model widechar support after
@@ -752,7 +753,7 @@ linenum:
goto skipline;
}
- if (!TREE_PERMANENT (yylval.ttype))
+ if (! ggc_p && !TREE_PERMANENT (yylval.ttype))
{
input_filename
= (char *) permalloc (TREE_STRING_LENGTH (yylval.ttype) + 1);