This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] testsuite (committed): don't use -m32 or -m64 in ppc tests
- From: Janis Johnson <janis187 at us dot ibm dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 1 Feb 2005 13:39:05 -0800
- Subject: [PATCH] testsuite (committed): don't use -m32 or -m64 in ppc tests
Fix a couple of ppc-specific tests to they don't specify -m32 or -m64;
doing that causes them to fail if the entire test suite is run with both
-m32 and -m64. Target lists use newly-supported selector expressions.
Checked in on mainline.
2005-02-01 Janis Johnson <janis187@us.ibm.com
* gcc.dg/ppc64-toc.c: Don't explicitly use -m64.
* gcc.dg/ppc-eabi.c: Don't explicity use -m32.
Index: gcc/testsuite/gcc.dg/ppc64-toc.c
===================================================================
RCS file: /opt/gcc-cvs/gcc/gcc/testsuite/gcc.dg/ppc64-toc.c,v
retrieving revision 1.2
diff -u -p -r1.2 ppc64-toc.c
--- gcc/testsuite/gcc.dg/ppc64-toc.c 24 Jan 2005 17:39:37 -0000 1.2
+++ gcc/testsuite/gcc.dg/ppc64-toc.c 26 Jan 2005 22:32:21 -0000
@@ -1,5 +1,5 @@
/* { dg-do link } */
-/* { dg-options "-m64 -mminimal-toc" { target powerpc64-*-* } } */
+/* { dg-options "-mminimal-toc" { target { powerpc64-*-* && lp64 } } } */
char *strchr (const char *, int);
Index: gcc/testsuite/gcc.dg/ppc-eabi.c
===================================================================
RCS file: /opt/gcc-cvs/gcc/gcc/testsuite/gcc.dg/ppc-eabi.c,v
retrieving revision 1.1
diff -u -p -r1.1 ppc-eabi.c
--- gcc/testsuite/gcc.dg/ppc-eabi.c 2 Dec 2004 06:30:42 -0000 1.1
+++ gcc/testsuite/gcc.dg/ppc-eabi.c 21 Jan 2005 22:44:49 -0000
@@ -1,4 +1,4 @@
/* PR target/16952 */
-/* { dg-do compile { target powerpc*-*-linux* } } */
-/* { dg-options "-m32 -meabi -mrelocatable" } */
+/* { dg-do compile { target { powerpc*-*-linux* && ilp32 } } } */
+/* { dg-options "-meabi -mrelocatable" } */
char *s = "boo";