aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/mips
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>2006-06-12 11:03:57 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2006-06-12 11:03:57 +0000
commit0901c5a3d97937d6ef2f430baa98328b032e35c6 (patch)
treef9f62d64edd44a5e0bdf35b5a59ff485aa4f9bf3 /gcc/config/mips
parentcb253473bce50e27a2d612212f529f7924665865 (diff)
downloadgcc-0901c5a3d97937d6ef2f430baa98328b032e35c6.zip
gcc-0901c5a3d97937d6ef2f430baa98328b032e35c6.tar.gz
gcc-0901c5a3d97937d6ef2f430baa98328b032e35c6.tar.bz2
mips.c (mips_file_start): Create special section ".gcc_compiled_longXX" for o64 ABI as well as EABI.
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
Diffstat (limited to 'gcc/config/mips')
-rw-r--r--gcc/config/mips/mips.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c
index a12e82a..d879402 100644
--- a/gcc/config/mips/mips.c
+++ b/gcc/config/mips/mips.c
@@ -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);