From b274104c479b03bffb14266ae645e9d43f7a05b3 Mon Sep 17 00:00:00 2001 From: Per Bothner Date: Thu, 21 May 1998 05:23:59 -0700 Subject: [PATCH] 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 --- gcc/function.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gcc/function.c b/gcc/function.c index 2d1056f4371..900ad3b47cb 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. -- 2.30.2