From ba25ac36a7b77df8d3021f270fa28d64997d3d65 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Thu, 10 Nov 1994 21:41:55 -0700 Subject: [PATCH] pa.h (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Define. * pa.h (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Define. (ASM_FILE_END): Delete unneeded definition. From-SVN: r8421 --- gcc/config/pa/pa.h | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/gcc/config/pa/pa.h b/gcc/config/pa/pa.h index 36b7a8456f3..5d6e99111f5 100644 --- a/gcc/config/pa/pa.h +++ b/gcc/config/pa/pa.h @@ -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. */