mips.c (mips_file_start): Create special section ".gcc_compiled_longXX" for o64 ABI...
authorFred Fish <fnf@specifix.com>
Mon, 12 Jun 2006 11:03:57 +0000 (11:03 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Mon, 12 Jun 2006 11:03:57 +0000 (11:03 +0000)
2006-06-12  Fred Fish  <fnf@specifix.com>

* config/mips/mips.c (mips_file_start): Create special section
".gcc_compiled_longXX" for o64 ABI as well as EABI.

From-SVN: r114566

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

index c95edb3b34920ccc9ffbc3b7ff1082bb28897041..475c36fccae2238e729a4216d3588f537f2ba8a4 100644 (file)
@@ -1,3 +1,8 @@
+2006-06-12  Fred Fish  <fnf@specifix.com>
+
+       * config/mips/mips.c (mips_file_start): Create special section
+       ".gcc_compiled_longXX" for o64 ABI as well as EABI.
+
 2006-06-11  Eric Christopher  <echristo@apple.com>
 
        PR middle-end/27948
index a12e82af707efa48073c2728ffb9f9c96425e32f..d8794024c9eeeb3746b386fb978ecb60b128f5e8 100644 (file)
@@ -5830,8 +5830,9 @@ mips_file_start (void)
 
       /* 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.  */
-      if (mips_abi == ABI_EABI)
+        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);