mips: allow abi32 and 64bit registers

Aldy Hernandez aldyh@redhat.com
Thu Sep 6 15:26:00 GMT 2001


now that we can have a 32bit abi and 64bit registers, this restriction
is unecessary.  ok to install?

-- 
My soul belongs to NEC.

2001-09-06  Aldy Hernandez  <aldyh@redhat.com>

        * config/mips/mips.c (override_options): Allow abi32 with 64 bit
	registers.

Index: mips.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/mips/mips.c,v
retrieving revision 1.146
diff -c -p -r1.146 mips.c
*** mips.c	2001/09/05 08:45:33	1.146
--- mips.c	2001/09/06 22:21:46
*************** override_options ()
*** 4819,4827 ****
    /* If both ABI and ISA were specified, check for conflicts.  */
    else if (mips_isa_string && mips_abi_string)
      {
!       if ((! ISA_HAS_64BIT_REGS && (mips_abi == ABI_N32 || mips_abi ==
ABI_64
  			     || mips_abi == ABI_O64))
- 	  || (ISA_HAS_64BIT_REGS && mips_abi == ABI_32))
  	error ("-mabi=%s does not support -mips%d", mips_abi_string,
mips_isa);
      }
  
--- 4819,4826 ----
    /* If both ABI and ISA were specified, check for conflicts.  */
    else if (mips_isa_string && mips_abi_string)
      {
!       if (! ISA_HAS_64BIT_REGS && (mips_abi == ABI_N32 || mips_abi ==
ABI_64
  			     || mips_abi == ABI_O64))
  	error ("-mabi=%s does not support -mips%d", mips_abi_string,
mips_isa);
      }
  



More information about the Gcc-patches mailing list