Fix bootstrap on arm-netbsdelf (PR32973)
Andreas Schwab
schwab@suse.de
Sat Aug 4 18:47:00 GMT 2007
This fixes bootstrap on arm-netbsdelf by ignoring an BS/NL pair while
scanning a struct definition. Regtested on ia64-linux, and tested by
Richard Earnshaw on arm-netbsdelf.
Andreas.
2007-08-04 Andreas Schwab <schwab@suse.de>
PR bootstrap/32973
* gengtype-lex.l: Ignore backslash/newline pair while scanning a
struct definition.
Index: gcc/gengtype-lex.l
===================================================================
--- gcc/gengtype-lex.l (revision 127178)
+++ gcc/gengtype-lex.l (working copy)
@@ -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; }
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, MaxfeldstraÃe 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
More information about the Gcc-patches
mailing list