summaryrefslogtreecommitdiff
path: root/gcc/gengtype-lex.l
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2007-08-07 15:31:56 +0000
committerAndreas Schwab <schwab@gcc.gnu.org>2007-08-07 15:31:56 +0000
commit049e9ad97ecf7140dea055c6f80473396f2d2fb9 (patch)
tree4b6817a36bfd7717c14c6948912b9b5026b512af /gcc/gengtype-lex.l
parent536e0a8f3196e986875b8d85ccb95417e903a39c (diff)
downloadgcc-049e9ad97ecf7140dea055c6f80473396f2d2fb9.tar.gz
re PR bootstrap/32973 (bootstrap failure with indented structure declaration in macro)
PR bootstrap/32973 * gengtype-lex.l: Ignore backslash/newline pair while scanning a struct definition. From-SVN: r127272
Diffstat (limited to 'gcc/gengtype-lex.l')
-rw-r--r--gcc/gengtype-lex.l1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/gengtype-lex.l b/gcc/gengtype-lex.l
index 9ebe0ccf880..8cec71b30ff 100644
--- a/gcc/gengtype-lex.l
+++ b/gcc/gengtype-lex.l
@@ -104,6 +104,7 @@ EOID [^[:alnum:]_]
"/*" { BEGIN(in_struct_comment); }
{WS} { update_lineno (yytext, yyleng); }
+\\\n { lexer_line.line++; }
"const"/{EOID} /* don't care */
"GTY"/{EOID} { return GTY_TOKEN; }