aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPer Bothner <bothner@gcc.gnu.org>1998-05-21 05:23:59 -0700
committerPer Bothner <bothner@gcc.gnu.org>1998-05-21 05:23:59 -0700
commitb274104c479b03bffb14266ae645e9d43f7a05b3 (patch)
treeb36eb6545f1a21373192e61974bef0d92a8b40b0 /gcc
parentcecbf6e2b3fcef0f3bd4131d78775e65e5bdaf4a (diff)
downloadgcc-b274104c479b03bffb14266ae645e9d43f7a05b3.zip
gcc-b274104c479b03bffb14266ae645e9d43f7a05b3.tar.gz
gcc-b274104c479b03bffb14266ae645e9d43f7a05b3.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/function.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/function.c b/gcc/function.c
index 2d1056f..900ad3b 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.