OSDN Git Service

* m32r/m32r.h (ASM_OUTPUT_SOURCE_LINE): Always output line number
authordevans <devans@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 31 Jul 1998 12:29:10 +0000 (12:29 +0000)
committerdevans <devans@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 31 Jul 1998 12:29:10 +0000 (12:29 +0000)
labels with .debugsym if no parallel insns.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@21504 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/m32r/m32r.h

index 80e5c8d..f82a321 100644 (file)
@@ -1,3 +1,8 @@
+Fri Jul 31 10:23:55 1998  Doug Evans  <devans@canuck.cygnus.com>
+
+       * 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  <rth@cygnus.com>
 
        * alpha.md (fp cmp): Replicate patterns for ALPHA_TP_INSN.
index d24a1d5..5a93d7a 100644 (file)
@@ -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;                                                   \
   }                                                                    \