From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1100 invoked by alias); 4 Aug 2007 18:47:04 -0000 Received: (qmail 965 invoked by uid 22791); 4 Aug 2007 18:47:02 -0000 X-Spam-Check-By: sourceware.org Received: from ns.suse.de (HELO mx1.suse.de) (195.135.220.2) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 04 Aug 2007 18:47:00 +0000 Received: from Relay1.suse.de (mail2.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.suse.de (Postfix) with ESMTP id D328D12965 for ; Sat, 4 Aug 2007 20:46:57 +0200 (CEST) From: Andreas Schwab To: gcc-patches@gcc.gnu.org Subject: Fix bootstrap on arm-netbsdelf (PR32973) X-Yow: Once, there was NO fun... This was before MENU planning, FASHION statements or NAUTILUS equipment... Then, in 1985.. FUN was completely encoded in this tiny MICROCHIP.. It contain 14,768 vaguely amusing SIT-COM pilots!! We had to wait FOUR BILLION years but we finally got JERRY LEWIS, MTV and a large selection of cream-filled snack cakes! Date: Sat, 04 Aug 2007 18:47:00 -0000 Message-ID: User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2007-08/txt/msg00248.txt.bz2 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 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."