Commit b274104c by Per Bothner

function.c (init_function_start): Don't call emit_line_note if lineno is 0.

8
	* function.c (init_function_start):  Don't call emit_line_note if
	lineno is 0.  (Can happen when compiling Java .class files.)

From-SVN: r19930
parent cecbf6e2
...@@ -5351,7 +5351,9 @@ init_function_start (subr, filename, line) ...@@ -5351,7 +5351,9 @@ init_function_start (subr, filename, line)
current_function_outgoing_args_size = 0; current_function_outgoing_args_size = 0;
/* Prevent ever trying to delete the first instruction of a function. /* Prevent ever trying to delete the first instruction of a function.
Also tell final how to output a linenum before the function prologue. */ Also tell final how to output a linenum before the function prologue.
Note linenums could be missing, e.g. when compiling a Java .class file. */
if (line > 0)
emit_line_note (filename, line); emit_line_note (filename, line);
/* Make sure first insn is a note even if we don't want linenums. /* Make sure first insn is a note even if we don't want linenums.
......
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