OSDN Git Service

gcc/
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 17 Sep 2007 23:11:25 +0000 (23:11 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 17 Sep 2007 23:11:25 +0000 (23:11 +0000)
* config/mips/mips.c (mips_file_start): Add ".previous" directives
to both ".section"s.

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

gcc/ChangeLog
gcc/config/mips/mips.c

index 3c57479..6e8285f 100644 (file)
@@ -1,3 +1,8 @@
+2007-09-18  Richard Sandiford  <rsandifo@nildram.co.uk>
+
+       * config/mips/mips.c (mips_file_start): Add ".previous" directives
+       to both ".section"s.
+
 2007-09-17  Richard Sandiford  <rsandifo@nildram.co.uk>
 
        * config/mips/mips.c (mips_output_mi_thunk): Use
index b285572..6a4a1d9 100644 (file)
@@ -7055,18 +7055,16 @@ mips_file_start (void)
         because in this way we can avoid creating an allocated section.  We
         do not want this section to take up any space in the running
         executable.  */
-      fprintf (asm_out_file, "\t.section .mdebug.%s\n", abi_string);
+      fprintf (asm_out_file, "\t.section .mdebug.%s\n\t.previous\n",
+              abi_string);
 
       /* There is no ELF header flag to distinguish long32 forms of the
         EABI from long64 forms.  Emit a special section to help tools
         such as GDB.  Do the same for o64, which is sometimes used with
         -mlong64.  */
       if (mips_abi == ABI_EABI || mips_abi == ABI_O64)
-       fprintf (asm_out_file, "\t.section .gcc_compiled_long%d\n",
-                TARGET_LONG64 ? 64 : 32);
-
-      /* Restore the default section.  */
-      fprintf (asm_out_file, "\t.previous\n");
+       fprintf (asm_out_file, "\t.section .gcc_compiled_long%d\n"
+                "\t.previous\n", TARGET_LONG64 ? 64 : 32);
 
 #ifdef HAVE_AS_GNU_ATTRIBUTE
       fprintf (asm_out_file, "\t.gnu_attribute 4, %d\n",