This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
patch: error when altivec + e500
- From: Aldy Hernandez <aldyh at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 21 Apr 2004 22:05:08 -0400
- Subject: patch: error when altivec + e500
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)