This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fix gcc.dg/smod-1.c on x86-64


I thought -mtune=i486 would work on x86-64, but the answer is:
smod-1.c:1: error: CPU you selected does not support x86-64 instruction set

Fixed thusly.


2004-10-19 ?Eric Botcazou ?<ebotcazou@libertysurf.fr>

	* gcc.dg/smod-1.c: Pass -mtune=i486 only on x86.


Index: gcc.dg/smod-1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/smod-1.c,v
retrieving revision 1.1
diff -u -p -r1.1 smod-1.c
--- gcc.dg/smod-1.c     18 Oct 2004 22:45:01 -0000      1.1
+++ gcc.dg/smod-1.c     19 Oct 2004 20:51:46 -0000
@@ -3,7 +3,7 @@

 /* { dg-do run } */
 /* { dg-options "-std=c99" } */
-/* { dg-options "-std=c99 -mtune=i486" { target i?86-*-* x86_64-*-* } } */
+/* { dg-options "-std=c99 -mtune=i486" { target i?86-*-* } } */

 #include <limits.h>


-- 
Eric Botcazou


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]