rs6000.c (rs6000_parse_abi_options): Make sure spe ABI is configured, if requested.
authorNathan Sidwell <nathan@codesourcery.com>
Fri, 24 Jan 2003 16:54:23 +0000 (16:54 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Fri, 24 Jan 2003 16:54:23 +0000 (16:54 +0000)
* config/rs6000/rs6000.c (rs6000_parse_abi_options): Make sure
spe ABI is configured, if requested.

From-SVN: r61712

gcc/ChangeLog
gcc/config/rs6000/rs6000.c

index 3684fa588bdd8a71ef1979124cc8fc158ed761fe..befde2e176011a610c0128dcd315970dcbf0759f 100644 (file)
@@ -1,3 +1,8 @@
+2003-01-24  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * config/rs6000/rs6000.c (rs6000_parse_abi_options): Make sure
+       spe ABI is configured, if requested.
+
 2003-01-24  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
 
        * doc/passes.texi: Fix typo.
index 8e7160f7fa094e73cdfa09c473903d35d15a79a8..b51ad91167b9abac2397fde1b5d083a2d0cb7ea1 100644 (file)
@@ -777,7 +777,12 @@ rs6000_parse_abi_options ()
   else if (! strcmp (rs6000_abi_string, "no-altivec"))
     rs6000_altivec_abi = 0;
   else if (! strcmp (rs6000_abi_string, "spe"))
-    rs6000_spe_abi = 1;
+    {
+      rs6000_spe_abi = 1;
+      if (!TARGET_SPE_ABI)
+       error ("not configured for ABI: '%s'", rs6000_abi_string);
+    }
+  
   else if (! strcmp (rs6000_abi_string, "no-spe"))
     rs6000_spe_abi = 0;
   else