OSDN Git Service

2002-03-07 Aldy Hernandez <aldyh@redhat.com>
authoraldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 7 Mar 2002 06:50:32 +0000 (06:50 +0000)
committeraldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 7 Mar 2002 06:50:32 +0000 (06:50 +0000)
        * 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50392 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/rs6000/rs6000.c
gcc/doc/invoke.texi

index b829d40..555d2ff 100644 (file)
@@ -1,3 +1,11 @@
+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.
+
 2002-03-06  Richard Henderson  <rth@redhat.com>
 
        * genemit.c (gen_exp): New argument used.  Invoke copy_rtx
index b180577..89caf5c 100644 (file)
@@ -217,7 +217,7 @@ static const char alt_reg_names[][8] =
    "%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"
+   "vrsave"
 };
 #endif
 \f
@@ -589,6 +589,8 @@ rs6000_parse_abi_options ()
     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 add83e6..393a20e 100644 (file)
@@ -446,7 +446,7 @@ in the following sections.
 -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
+-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}
@@ -6966,6 +6966,10 @@ 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
 @opindex mprototype