This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH, rs6000, committed] undef-bool-* tests should exclude -m32
- From: Bill Schmidt <wschmidt at linux dot ibm dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Cc: Segher Boessenkool <segher at kernel dot crashing dot org>
- Date: Fri, 20 Apr 2018 16:04:59 -0500
- Subject: [PATCH, rs6000, committed] undef-bool-* tests should exclude -m32
Hi,
These two new tests don't work with -m32, because they include headers
that don't support 32-bit. Require lp64 to stop the noise. Tested on
powerpc64-linux-gnu (P7, 32/64) and powerpc64le-linux-gnu (P8, 64),
committed as pre-approved.
Thanks!
Bill
[gcc/testsuite]
2018-04-20 Bill Schmidt <wschmidt@linux.ibm.com>
* g++.dg/ext/undef-bool-1.C: Require lp64.
* gcc.target/powerpc/undef-bool-2.c: Likewise.
Index: gcc/testsuite/g++.dg/ext/undef-bool-1.C
===================================================================
--- gcc/testsuite/g++.dg/ext/undef-bool-1.C (revision 259521)
+++ gcc/testsuite/g++.dg/ext/undef-bool-1.C (working copy)
@@ -1,5 +1,6 @@
/* { dg-do compile { target { powerpc*-*-* } } } */
/* { dg-options "-O2 -DNO_WARN_X86_INTRINSICS -mvsx" } */
+/* { dg-require-effective-target lp64 } */
/* Test to ensure that "bool" gets undef'd in xmmintrin.h when
we require strict ANSI. */
Index: gcc/testsuite/gcc.target/powerpc/undef-bool-2.c
===================================================================
--- gcc/testsuite/gcc.target/powerpc/undef-bool-2.c (revision 259521)
+++ gcc/testsuite/gcc.target/powerpc/undef-bool-2.c (working copy)
@@ -1,5 +1,6 @@
/* { dg-do compile } */
/* { dg-options "-O2 -std=c11 -DNO_WARN_X86_INTRINSICS -mvsx" } */
+/* { dg-require-effective-target lp64 } */
/* Test to ensure that "bool" gets undef'd in xmmintrin.h when
we require strict ANSI. Subsequent use of bool needs stdbool.h.