This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[committed] Fix PR target/25258 on 3.4 through 4.1
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sat, 10 Dec 2005 11:30:06 -0500 (EST)
- Subject: [committed] Fix PR target/25258 on 3.4 through 4.1
The enclosed change reverts to using .nsubspa to output debug information
in the text section between functions. This fixes the stabs degugging
problem noted in target/25258. Thanks to Randolph Chung for tracking this
problem down.
Tested on hppa2.0w-hp-hpux11.11. Committed to 3.4, 4.0 and 4.1 branches.
The 4.1 patch will be slightly different.
Dave
--
J. David Anglin dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6602)
2005-12-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
PR target/25258
* pa.c (som_text_section_asm_op): Use .NSUBSPA directive when changing
to the text subspace to output debugging information.
Index: config/pa/pa.c
===================================================================
--- config/pa/pa.c (revision 108342)
+++ config/pa/pa.c (working copy)
@@ -9037,19 +9037,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$";