From: Per Bothner Date: Thu, 21 May 1998 12:23:59 +0000 (-0700) Subject: function.c (init_function_start): Don't call emit_line_note if lineno is 0. X-Git-Tag: prereleases/egcs-1.1-prerelease~1159 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b274104c479b03bffb14266ae645e9d43f7a05b3;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/function.c b/gcc/function.c index 2d1056f4371a..900ad3b47cbf 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -5351,8 +5351,10 @@ init_function_start (subr, filename, line) current_function_outgoing_args_size = 0; /* Prevent ever trying to delete the first instruction of a function. - Also tell final how to output a linenum before the function prologue. */ - emit_line_note (filename, line); + 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); /* Make sure first insn is a note even if we don't want linenums. This makes sure the first insn will never be deleted.