From 29a5d7cc71660aac996e336a4733e9d8ef2b7f9b Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Thu, 17 Oct 1996 18:45:59 +0000 Subject: [PATCH] Set TARGET_LONG64 for the EABI From-SVN: r12975 --- gcc/config/mips/mips.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index 29a53ac760c..4266f59cd5d 100644 --- a/gcc/config/mips/mips.c +++ b/gcc/config/mips/mips.c @@ -3469,6 +3469,10 @@ override_options () if (mips_abi == ABI_32) target_flags &= ~ (MASK_FLOAT64|MASK_64BIT); + /* In the EABI in 64 bit mode, longs and pointers are 64 bits. */ + if (mips_abi == ABI_EABI && MASK_64BIT) + target_flags |= MASK_LONG64; + /* ??? This doesn't work yet, so don't let people try to use it. */ if (mips_abi == ABI_32) error ("The -mabi=32 support does not work yet."); -- 2.30.2