From 6619df077de9c3f535607deb2f87c07f65e1d6dc Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Fri, 15 Nov 1996 21:11:39 +0000 Subject: [PATCH] x From-SVN: r13178 --- gcc/dwarfout.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gcc/dwarfout.c b/gcc/dwarfout.c index 5206ebd1133..eb5b7dd2116 100644 --- a/gcc/dwarfout.c +++ b/gcc/dwarfout.c @@ -5246,7 +5246,10 @@ dwarfout_line (filename, line) register char *filename; register unsigned line; { - if (debug_info_level >= DINFO_LEVEL_NORMAL) + if (debug_info_level >= DINFO_LEVEL_NORMAL + /* We can't emit line number info for functions in separate sections, + because the assembler can't subtract labels in different sections. */ + && DECL_SECTION_NAME (current_function_decl) == NULL_TREE) { char label[MAX_ARTIFICIAL_LABEL_BYTES]; static unsigned last_line_entry_num = 0; -- 2.30.2