This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, testsuite] Fix powerpc-specific portions of PR85326
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Bill Schmidt <wschmidt at linux dot ibm dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, Segher Boessenkool <segher at kernel dot crashing dot org>, David Edelsohn <dje dot gcc at gmail dot com>
- Date: Mon, 16 Apr 2018 00:50:35 +0200
- Subject: Re: [PATCH, testsuite] Fix powerpc-specific portions of PR85326
- References: <8fca872e-a0f5-d70e-42b8-8eb1d30c672c@linux.ibm.com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Sun, Apr 15, 2018 at 04:53:27PM -0500, Bill Schmidt wrote:
> 2018-04-15 Bill Schmidt <wschmidt@linux.ibm.com>
>
> PR testsuite/85326
> * g++.dg/undef-bool-1.C: New file.
Tests really shouldn't be added to g++.dg/ directly, but to subdirectories
thereof.
In this case, I think g++.dg/ext/undef-bool-1.C is the right location.
And see below.
Also, just a single space in between : and description in the ChangeLog
file. Otherwise LGTM, but please wait for PowerPC maintainer ack.
> * gcc.target/powerpc/powerpc.exp: Remove .C support.
> * gcc.target/powerpc/undef-bool-1.C: Remove file.
>
>
> Index: gcc/testsuite/g++.dg/undef-bool-1.C
> ===================================================================
> --- gcc/testsuite/g++.dg/undef-bool-1.C (nonexistent)
> +++ gcc/testsuite/g++.dg/undef-bool-1.C (working copy)
> @@ -0,0 +1,13 @@
> +/* { dg-do compile { target { powerpc*-*-* } } } */
> +/* { dg-options "-O2 -std=c++11 -DNO_WARN_X86_INTRINSICS" } */
g++.dg/ tests are cycled through some or all -std= options, so
rather than -std=c++11 you should require effective target c++11,
or if you want to run it for -std=c++11 only and not others, c++11only.
Though in this testcase I don't see a reason why it wouldn't work even with
c++14, c++17 or c++2a.
Jakub