summaryrefslogtreecommitdiff
path: root/gcc/dwarfout.c
diff options
context:
space:
mode:
authormerrill <merrill@138bc75d-0d04-0410-961f-82ee72b054a4>1996-11-15 21:11:39 +0000
committermerrill <merrill@138bc75d-0d04-0410-961f-82ee72b054a4>1996-11-15 21:11:39 +0000
commitce4974e03f74f743dbd4a646586166e4da0677b6 (patch)
treeae60e68c76f4bedc6c6698d4e65cba65027c6eba /gcc/dwarfout.c
parent9b000e3e1077b892cc87351b9e7db79e6b6d3206 (diff)
downloadgcc-ce4974e03f74f743dbd4a646586166e4da0677b6.tar.gz
x
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@13178 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/dwarfout.c')
-rw-r--r--gcc/dwarfout.c5
1 files changed, 4 insertions, 1 deletions
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;