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]

[PATCH] Fix PR 11565, options on the tests are wrong


This patch fixes PR 11565 (which is the tests, gcc.dg/i386-387-{1,5}.c are failing)
which is caused by having --with-cpu/-with-arch support.


Thanks,
Andrew Pinski

ChangeLog:

	* gcc.dg/i386-387-1.c (dg-options): Add -march=i386.
	* gcc.dg/i386-387-5.c (dg-options): Likewise.

Patch:

Index: i386-387-1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/i386-387-1.c,v
retrieving revision 1.6
diff -u -r1.6 i386-387-1.c
--- i386-387-1.c 15 Jun 2003 13:32:31 -0000 1.6
+++ i386-387-1.c 21 Jul 2003 19:21:23 -0000
@@ -1,6 +1,6 @@
/* Verify that -mno-fancy-math-387 works. */
/* { dg-do compile { target "i?86-*-*" } } */
-/* { dg-options "-O -ffast-math -mfpmath=387 -mno-fancy-math-387" } */
+/* { dg-options "-O -ffast-math -mfpmath=387 -mno-fancy-math-387 -march=i386" } */
/* { dg-final { scan-assembler "call\t_?sin" } } */
/* { dg-final { scan-assembler "call\t_?cos" } } */
/* { dg-final { scan-assembler "call\t_?sqrt" } } */
Index: i386-387-5.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/i386-387-5.c,v
retrieving revision 1.1
diff -u -r1.1 i386-387-5.c
--- i386-387-5.c 16 Jun 2003 12:53:16 -0000 1.1
+++ i386-387-5.c 21 Jul 2003 19:21:23 -0000
@@ -1,6 +1,6 @@
/* Verify that -mno-fancy-math-387 works. */
/* { dg-do compile { target "i?86-*-*" } } */
-/* { dg-options "-O -ffast-math -mfpmath=387 -mno-fancy-math-387" } */
+/* { dg-options "-O -ffast-math -mfpmath=387 -mno-fancy-math-387 -march=i386" } */
/* { dg-final { scan-assembler "call\t_?atan" } } */


double f1(double x) { return __builtin_atan(x); }


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