]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
dbxcoff.h (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Use asm_fprintf and %L to generate the...
authorAndreas Schwab <schwab@issan.cs.uni-dortmund.de>
Thu, 20 May 1999 01:54:28 +0000 (01:54 +0000)
committerJeff Law <law@gcc.gnu.org>
Thu, 20 May 1999 01:54:28 +0000 (19:54 -0600)
        * config/dbxcoff.h (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Use
        asm_fprintf and %L to generate the label name.
        * config/dbxelf.h (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Likewise.
        (ASM_OUTPUT_SOURCE_LINE): Correct generation of internal labels.

From-SVN: r27048

gcc/ChangeLog
gcc/config/dbxcoff.h
gcc/config/dbxelf.h

index 80c1243a4f96a22988169685bfa3e5bd27148dbb..5a20e9417053e3d31046016c7cadd18eeda4235c 100644 (file)
@@ -1,3 +1,10 @@
+1999-05-20  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
+
+       * config/dbxcoff.h (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Use
+       asm_fprintf and %L to generate the label name.
+       * config/dbxelf.h (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Likewise.
+       (ASM_OUTPUT_SOURCE_LINE): Correct generation of internal labels.
+
 Thu May 20 01:40:55 1999  Jeffrey A Law  (law@cygnus.com)
 
        * jump.c (can_reverse_comparison_p): Do not abort if the comparison
index 9497a70b83fbbfc4272999a0a1ad2e5a2c83393d..1d5b448879f65a82a0e6ec81a8d279e1d493790b 100644 (file)
@@ -49,8 +49,8 @@ Boston, MA 02111-1307, USA.  */
 
 #undef DBX_OUTPUT_MAIN_SOURCE_FILE_END
 #define DBX_OUTPUT_MAIN_SOURCE_FILE_END(FILE, FILENAME)                        \
-  fprintf (FILE,                                                       \
-          "\t.text\n\t.stabs \"\",%d,0,0,Letext\nLetext:\n", N_SO)
+  asm_fprintf (FILE,                                                   \
+              "\t.text\n\t.stabs \"\",%d,0,0,%LLetext\n%LLetext:\n", N_SO)
 
 /* Like block addresses, stabs line numbers are relative to the
    current function.  */
index 9472887cc526e9d94ff1987836a072f2a6f5c0f4..3971bc1c9dca11a3f33fd72e956ede2ee7ca4503 100644 (file)
@@ -80,15 +80,19 @@ while (0)
    current function.  */
 
 #undef  ASM_OUTPUT_SOURCE_LINE
-#define ASM_OUTPUT_SOURCE_LINE(file, line)                             \
+#define ASM_OUTPUT_SOURCE_LINE(FILE, LINE)                             \
 do                                                                     \
   {                                                                    \
     static int sym_lineno = 1;                                         \
-    fprintf (file, ".stabn 68,0,%d,.LM%d-",                            \
-            line, sym_lineno);                                         \
-    assemble_name (file,                                               \
+    char temp[256];                                                    \
+    ASM_GENERATE_INTERNAL_LABEL (temp, "LM", sym_lineno);              \
+    fprintf (FILE, ".stabn 68,0,%d,", LINE);                           \
+    assemble_name (FILE, temp);                                                \
+    putc ('-', FILE);                                                  \
+    assemble_name (FILE,                                               \
                   XSTR (XEXP (DECL_RTL (current_function_decl), 0), 0));\
-    fprintf (file, "\n.LM%d:\n", sym_lineno);                          \
+    putc ('\n', FILE);                                                 \
+    ASM_OUTPUT_INTERNAL_LABEL (FILE, "LM", sym_lineno);                        \
     sym_lineno += 1;                                                   \
   }                                                                    \
 while (0)
@@ -99,7 +103,7 @@ while (0)
 
 #undef  DBX_OUTPUT_MAIN_SOURCE_FILE_END
 #define DBX_OUTPUT_MAIN_SOURCE_FILE_END(FILE, FILENAME)                        \
-  fprintf (FILE,                                                       \
-          "\t.text\n\t.stabs \"\",%d,0,0,Letext\nLetext:\n", N_SO)
+  asm_fprintf (FILE,                                                   \
+              "\t.text\n\t.stabs \"\",%d,0,0,%LLetext\n%LLetext:\n", N_SO)
 
 #endif /* __DBX_ELF_H */