rs6000.c (rs6000_override_options): Error when user wants altivec and e500 instructions.
authorAldy Hernandez <aldyh@redhat.com>
Thu, 22 Apr 2004 02:02:13 +0000 (02:02 +0000)
committerAldy Hernandez <aldyh@gcc.gnu.org>
Thu, 22 Apr 2004 02:02:13 +0000 (02:02 +0000)
* config/rs6000/rs6000.c (rs6000_override_options): Error when
user wants altivec and e500 instructions.

From-SVN: r80996

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

index 9b22f4db7eed44712ff6f667e168a9bce08d0adf..e31d4957ec7572981cc093eb9a80cfe4678edbae 100644 (file)
@@ -1,3 +1,8 @@
+2004-04-21  Aldy Hernandez  <aldyh@redhat.com>
+
+       * config/rs6000/rs6000.c (rs6000_override_options): Error when
+       user wants altivec and e500 instructions.
+
 2004-04-21  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR target/14813
index 7ea3ddaa91c885060c131d6b9759023a4eeaa76c..49f4f96ca7ae10143d84775ba1962a796c9d2e5b 100644 (file)
@@ -893,6 +893,9 @@ rs6000_override_options (const char *default_cpu)
 
   if (TARGET_E500)
     {
+      if (TARGET_ALTIVEC)
+       error ("AltiVec and E500 instructions cannot coexist");
+
       /* The e500 does not have string instructions, and we set
         MASK_STRING above when optimizing for size.  */
       if ((target_flags & MASK_STRING) != 0)