OSDN Git Service

* pa.h (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Define.
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 11 Nov 1994 04:41:55 +0000 (04:41 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 11 Nov 1994 04:41:55 +0000 (04:41 +0000)
(ASM_FILE_END): Delete unneeded definition.

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

gcc/config/pa/pa.h

index 36b7a84..5d6e991 100644 (file)
@@ -168,6 +168,14 @@ extern int target_flags;
   ((GET_CODE (X) == PLUS ? OFFSET : 0) \
     + (frame_pointer_needed ? 0 : compute_frame_size (get_frame_size (), 0)))
 
+/* gdb needs a null N_SO at the end of each file for scattered loading. */
+
+#undef DBX_OUTPUT_MAIN_SOURCE_FILE_END
+#define DBX_OUTPUT_MAIN_SOURCE_FILE_END(FILE, FILENAME)                        \
+  fprintf (FILE,                                                       \
+          "%s\t.text\n\t.stabs \"%s\",%d,0,0,L$text_end\nL$text_end:\n",\
+          TEXT_SECTION_ASM_OP, "" , N_SO)
+
 #if (TARGET_DEFAULT & 1) == 0
 #define CPP_SPEC "%{msnake:-D__hp9000s700 -D_PA_RISC1_1}\
  %{mpa-risc-1-1:-D__hp9000s700 -D_PA_RISC1_1}"
@@ -1776,19 +1784,6 @@ readonly_data ()                                                 \
         fputs (",DATA\n", FILE);                               \
      } while (0)
 
-/* hpux ld doesn't output the object file name, or anything useful at
-   all, to indicate the start of an object file's symbols. This screws
-   up gdb, so we'll output this magic cookie at the end of an object
-   file with debugging symbols */
-
-#define ASM_FILE_END(FILE) \
-  do { if (write_symbols == DBX_DEBUG)\
-        { fputs (TEXT_SECTION_ASM_OP, FILE);\
-          fputs ("\t.stabs \"end_file.\",4,0,0,Ltext_end\nLtext_end:\n",\
-                 (FILE));\
-        }\
-     } while (0)
-
 /* The bogus HP assembler requires ALL external references to be
    "imported", even library calls. They look a bit different, so
    here's this macro. */