This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

-mabi=no-altivec


minor oversight.  we need a way to disable -mabi=altivec if configuring
with --enable-altivec.

i also fixed %vrsave for -mregnames.

committed as obvious.

2002-03-07  Aldy Hernandez  <aldyh@redhat.com>

	* doc/invoke.texi: Add documentation for -mabi=no-altivec.

	* config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
	-mabi=no-altivec
	(alt_reg_names): Remove % for vrsave.


Index: doc/invoke.texi
===================================================================
RCS file: /cvs/uberbaum/gcc/doc/invoke.texi,v
retrieving revision 1.126
diff -c -p -r1.126 invoke.texi
*** invoke.texi	2002/03/05 20:17:57	1.126
--- invoke.texi	2002/03/07 06:49:26
*************** in the following sections.
*** 446,452 ****
  -mtoc  -mno-toc -mlittle  -mlittle-endian  -mbig  -mbig-endian @gol
  -mcall-aix -mcall-sysv -mcall-netbsd @gol
  -maix-struct-return -msvr4-struct-return
! -mabi=altivec @gol
  -mprototype  -mno-prototype @gol
  -msim  -mmvme  -mads  -myellowknife  -memb -msdata @gol
  -msdata=@var{opt}  -mvxworks -G @var{num} -pthread}
--- 446,452 ----
  -mtoc  -mno-toc -mlittle  -mlittle-endian  -mbig  -mbig-endian @gol
  -mcall-aix -mcall-sysv -mcall-netbsd @gol
  -maix-struct-return -msvr4-struct-return
! -mabi=altivec -mabi=no-altivec @gol
  -mprototype  -mno-prototype @gol
  -msim  -mmvme  -mads  -myellowknife  -memb -msdata @gol
  -msdata=@var{opt}  -mvxworks -G @var{num} -pthread}
*************** SVR4 ABI)@.
*** 6965,6970 ****
--- 6965,6974 ----
  Extend the current ABI with AltiVec ABI extensions.  This does not
  change the default ABI, instead it adds the AltiVec ABI extensions to
  the current ABI@.
+ 
+ @item -mabi=no-altivec
+ @opindex mabi=no-altivec
+ Disable AltiVec ABI extensions for the current ABI.
  
  @item -mprototype
  @itemx -mno-prototype
Index: config/rs6000/rs6000.c
===================================================================
RCS file: /cvs/uberbaum/gcc/config/rs6000/rs6000.c,v
retrieving revision 1.294
diff -c -p -r1.294 rs6000.c
*** rs6000.c	2002/03/03 14:07:37	1.294
--- rs6000.c	2002/03/07 06:49:30
*************** static const char alt_reg_names[][8] =
*** 217,223 ****
     "%v8",  "%v9",  "%v10", "%v11", "%v12", "%v13", "%v14", "%v15",
     "%v16", "%v17", "%v18", "%v19", "%v20", "%v21", "%v22", "%v23",
     "%v24", "%v25", "%v26", "%v27", "%v28", "%v29", "%v30", "%v31",
!    "%vrsave"
  };
  #endif
  
--- 217,223 ----
     "%v8",  "%v9",  "%v10", "%v11", "%v12", "%v13", "%v14", "%v15",
     "%v16", "%v17", "%v18", "%v19", "%v20", "%v21", "%v22", "%v23",
     "%v24", "%v25", "%v26", "%v27", "%v28", "%v29", "%v30", "%v31",
!    "vrsave"
  };
  #endif
  
*************** rs6000_parse_abi_options ()
*** 589,594 ****
--- 589,596 ----
      return;
    else if (! strcmp (rs6000_abi_string, "altivec"))
      rs6000_altivec_abi = 1;
+   else if (! strcmp (rs6000_abi_string, "no-altivec"))
+     rs6000_altivec_abi = 0;
    else
      error ("unknown ABI specified: '%s'", rs6000_abi_string);
  }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]