From 049e9ad97ecf7140dea055c6f80473396f2d2fb9 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Tue, 7 Aug 2007 15:31:56 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 6 ++++++ gcc/gengtype-lex.l | 1 + 2 files changed, 7 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9b40d76..9e0e4bf 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2007-08-07 Andreas Schwab + + PR bootstrap/32973 + * gengtype-lex.l: Ignore backslash/newline pair while scanning a + struct definition. + 2007-08-07 Andreas Krebbel * lower-subreg.c (resolve_subreg_use): Remove assertion. diff --git a/gcc/gengtype-lex.l b/gcc/gengtype-lex.l index 9ebe0cc..8cec71b3 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; } -- 2.7.4