patch: error when altivec + e500
Aldy Hernandez
aldyh@redhat.com
Thu Apr 22 02:05:00 GMT 2004
AltiVec and the E500 cannot coexist in any way, shape, or form.
This, along with my previous testsuite patch, fixes a few more
regressions.
* config/rs6000/rs6000.c (rs6000_override_options): Error when
user wants altivec and e500 instructions.
Index: config/rs6000/rs6000.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/rs6000.c,v
retrieving revision 1.626
diff -c -p -r1.626 rs6000.c
*** config/rs6000/rs6000.c 20 Apr 2004 02:13:17 -0000 1.626
--- config/rs6000/rs6000.c 22 Apr 2004 01:59:20 -0000
*************** rs6000_override_options (const char *def
*** 893,898 ****
--- 893,901 ----
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)
More information about the Gcc-patches
mailing list