From 2752f9ec45f21d99bff4da8cd279e82ed59961ff Mon Sep 17 00:00:00 2001 From: John David Anglin Date: Sat, 10 Dec 2005 16:08:24 +0000 Subject: [PATCH] re PR target/25258 ([4.0 regression/hpux] gcc generates incorrect stabs debug output) PR target/25258 * pa.c (som_text_section_asm_op): Use .NSUBSPA directive when changing to the text subspace to output debugging information. From-SVN: r108353 --- gcc/ChangeLog | 6 ++++++ gcc/config/pa/pa.c | 10 ++++------ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8bd38784889f..93cbe3ee31db 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2005-12-10 John David Anglin + + PR target/25258 + * pa.c (som_text_section_asm_op): Use .NSUBSPA directive when changing + to the text subspace to output debugging information. + 2005-12-06 Alan Modra PR other/13873 diff --git a/gcc/config/pa/pa.c b/gcc/config/pa/pa.c index 3a5d003114eb..02d97fd14c3b 100644 --- a/gcc/config/pa/pa.c +++ b/gcc/config/pa/pa.c @@ -9127,19 +9127,17 @@ som_text_section_asm_op (void) && !DECL_WEAK (cfun->decl)) return "\t.SPACE $TEXT$\n\t.NSUBSPA $CODE$,QUAD=0,ALIGN=8,ACCESS=44,SORT=24,COMDAT"; - - return "\t.SPACE $TEXT$\n\t.NSUBSPA $CODE$"; } else { /* There isn't a current function or the body of the current function has been completed. So, we are changing to the - text section to output debugging information. Do this in - the default text section. We need to forget that we are - in the text section so that the function text_section in - varasm.c will call us the next time around. */ + text section to output debugging information. We need to + forget that we are in the text section so that the function + text_section in varasm.c will call us the next time around. */ forget_section (); } + return "\t.SPACE $TEXT$\n\t.NSUBSPA $CODE$"; } return "\t.SPACE $TEXT$\n\t.SUBSPA $CODE$"; -- 2.47.2