From 5f97de0ac982f8439ca78db6652fb722fe4fafe9 Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Fri, 31 Jul 1998 12:29:10 +0000 Subject: [PATCH] m32r.h (ASM_OUTPUT_SOURCE_LINE): Always output line number labels with .debugsym if no parallel insns. * m32r/m32r.h (ASM_OUTPUT_SOURCE_LINE): Always output line number labels with .debugsym if no parallel insns. From-SVN: r21504 --- gcc/ChangeLog | 5 +++++ gcc/config/m32r/m32r.h | 13 ++++++++++--- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 80e5c8d3b3f..f82a3214d14 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Fri Jul 31 10:23:55 1998 Doug Evans + + * m32r/m32r.h (ASM_OUTPUT_SOURCE_LINE): Always output line number + labels with .debugsym if no parallel insns. + Thu Jul 30 19:15:53 1998 Richard Henderson * alpha.md (fp cmp): Replicate patterns for ALPHA_TP_INSN. diff --git a/gcc/config/m32r/m32r.h b/gcc/config/m32r/m32r.h index d24a1d5c9a4..5a93d7a15d7 100644 --- a/gcc/config/m32r/m32r.h +++ b/gcc/config/m32r/m32r.h @@ -1663,8 +1663,13 @@ do { \ fprintf (FILE, "%s%s", USER_LABEL_PREFIX, real_name); \ } while (0) -/* For the m32r if -Os, don't force line number label to begin - at the beginning of the word. */ +/* If -Os, don't force line number labels to begin at the beginning of + the word; we still want the assembler to try to put things in parallel, + should that be possible. + For m32r/d, instructions are never in parallel (other than with a nop) + and the simulator and stub both handle a breakpoint in the middle of + a word so don't ever force line number labels to begin at the beginning + of a word. */ #undef ASM_OUTPUT_SOURCE_LINE #define ASM_OUTPUT_SOURCE_LINE(file, line) \ @@ -1676,7 +1681,9 @@ do \ assemble_name (file, \ XSTR (XEXP (DECL_RTL (current_function_decl), 0), 0));\ fprintf (file, \ - (optimize_size) ? "\n\t.debugsym .LM%d\n" : "\n.LM%d:\n", \ + (optimize_size || TARGET_M32R) \ + ? "\n\t.debugsym .LM%d\n" \ + : "\n.LM%d:\n", \ sym_lineno); \ sym_lineno += 1; \ } \ -- 2.30.2