Commit d2c979ef by Per Bothner Committed by Per Bothner

re PR preprocessor/21250 (line number 0 for <built-in> causes GAS to complain)


	PR preprocessor/21250
	* c-ppoutput.c (print_line): Print internal line 0 as 1.

From-SVN: r105408
parent c0e22534
2005-10-14 Per Bothner <per@bothner.com>
PR preprocessor/21250
* c-ppoutput.c (print_line): Print internal line 0 as 1.
2005-10-14 Nathan Sidwell <nathan@codesourcery.com>
PR c++/22551
......
......@@ -256,7 +256,8 @@ print_line (source_location src_loc, const char *special_flags)
p = cpp_quote_string (to_file_quoted,
(unsigned char *) map->to_file, to_file_len);
*p = '\0';
fprintf (print.outf, "# %u \"%s\"%s", print.src_line,
fprintf (print.outf, "# %u \"%s\"%s",
print.src_line == 0 ? 1 : print.src_line,
to_file_quoted, special_flags);
if (map->sysp == 2)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment