summaryrefslogtreecommitdiffstats
path: root/gcc/c-lex.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/c-lex.c')
-rw-r--r--gcc/c-lex.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/c-lex.c b/gcc/c-lex.c
index adc70fa041d..c33ade52822 100644
--- a/gcc/c-lex.c
+++ b/gcc/c-lex.c
@@ -544,6 +544,11 @@ check_newline ()
token = yylex ();
if (token != IDENTIFIER)
goto skipline;
+ if (nextchar >= 0)
+ c = nextchar, nextchar = -1;
+ else
+ c = GETC ();
+ ungetc (c, finput);
if (HANDLE_PRAGMA (finput, yylval.ttype))
{
c = GETC ();
OpenPOWER on IntegriCloud