------- Comment #10 from per at bothner dot com 2005-10-12 07:20 ------- Subject: Re: [4.1 Regression] line number 0 for <built-in> causes GAS to complain
What about this patch: 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 07:15:57 -0000 @@ -241,7 +241,7 @@ print_line (source_location src_loc, con putc ('\n', print.outf); print.printed = 0; - if (!flag_no_line_commands) + if (!flag_no_line_commands && src_loc != BUILTINS_LOCATION) { const struct line_map *map = linemap_lookup (&line_table, src_loc); -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21250