Set TARGET_LONG64 for the EABI
authorIan Lance Taylor <ian@gcc.gnu.org>
Thu, 17 Oct 1996 18:45:59 +0000 (18:45 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Thu, 17 Oct 1996 18:45:59 +0000 (18:45 +0000)
From-SVN: r12975

gcc/config/mips/mips.c

index 29a53ac760c6e31d27713b3ce19c8322c8e541d0..4266f59cd5da13e244cc9b3d45e79bd19b71cc3f 100644 (file)
@@ -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.");