re PR bootstrap/32973 (bootstrap failure with indented structure declaration in macro)
authorAndreas Schwab <schwab@suse.de>
Tue, 7 Aug 2007 15:31:56 +0000 (15:31 +0000)
committerAndreas Schwab <schwab@gcc.gnu.org>
Tue, 7 Aug 2007 15:31:56 +0000 (15:31 +0000)
PR bootstrap/32973
* gengtype-lex.l: Ignore backslash/newline pair while scanning a
struct definition.

From-SVN: r127272

gcc/ChangeLog
gcc/gengtype-lex.l

index 9b40d76747738f20598834e0a68fbe4284b7cb15..9e0e4bffc9d33e4ab3876157b1899ecfcb65373f 100644 (file)
@@ -1,3 +1,9 @@
+2007-08-07  Andreas Schwab  <schwab@suse.de>
+
+       PR bootstrap/32973
+       * gengtype-lex.l: Ignore backslash/newline pair while scanning a
+       struct definition.
+
 2007-08-07  Andreas Krebbel  <krebbel1@de.ibm.com>
 
        * lower-subreg.c (resolve_subreg_use): Remove assertion.
index 9ebe0ccf8801eb7f5e5ed398edb6d93def8bf15f..8cec71b30ff00f120fa13406e99ecb2abaecff96 100644 (file)
@@ -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; }