]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR target/25258 ([4.0 regression/hpux] gcc generates incorrect stabs debug output)
authorJohn David Anglin <dave.anglin@nrc-cnrc.gc.ca>
Sat, 10 Dec 2005 16:08:24 +0000 (16:08 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Sat, 10 Dec 2005 16:08:24 +0000 (16:08 +0000)
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
gcc/config/pa/pa.c

index 8bd38784889f655e6bfca143ce8f8017f0c14105..93cbe3ee31db0f570e29a3fa05c57d6001439a11 100644 (file)
@@ -1,3 +1,9 @@
+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.
+
 2005-12-06  Alan Modra  <amodra@bigpond.net.au>
 
        PR other/13873
index 3a5d003114eba74c3a6e208b88a441aec3375d0c..02d97fd14c3bf00c3edf730a61d59c37176cbe99 100644 (file)
@@ -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$";