From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24886 invoked by alias); 12 Oct 2005 05:13:58 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 24856 invoked by alias); 12 Oct 2005 05:13:55 -0000 Date: Wed, 12 Oct 2005 05:13:00 -0000 Message-ID: <20051012051355.24855.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug preprocessor/21250] [4.1 Regression] line number 0 for causes GAS to complain In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "per at bothner dot com" X-SW-Source: 2005-10/txt/msg01469.txt.bz2 List-Id: ------- Comment #7 from per at bothner dot com 2005-10-12 05:13 ------- Subject: Re: [4.1 Regression] line number 0 for causes GAS to complain pinskia at gcc dot gnu dot org wrote: > ------- Comment #6 from pinskia at gcc dot gnu dot org 2005-10-12 00:15 ------- > Per, > Are you going to fix this soon, if not please say you have no time and I will > look into it. I was awfully busy, but I had a little break so I could take a look. The following patch seems like it might be reasonable, and it seems to fix the immediate problem, but I haven't run a bootstrap yet. Index: c-ppoutput.c =================================================================== RCS file: /cvs/gcc/gcc/gcc/c-ppoutput.c,v retrieving revision 1.25 diff -u -p -r1.25 c-ppoutput.c --- c-ppoutput.c 25 Jun 2005 01:59:23 -0000 1.25 +++ c-ppoutput.c 12 Oct 2005 05:09:19 -0000 @@ -394,7 +394,8 @@ pp_file_change (const struct line_map *m flags = " 1"; else if (map->reason == LC_LEAVE) flags = " 2"; - print_line (map->start_location, flags); + else if (map->start_location != BUILTINS_LOCATION) + print_line (map->start_location, flags); } } } -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21250