------- Comment #7 from per at bothner dot com 2005-10-12 05:13 ------- Subject: Re: [4.1 Regression] line number 0 for <built-in> 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