This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C/C++ PATCH to implement -Wbool-operation (PR c/77490)
On Fri, Sep 23, 2016 at 12:44:22PM +0200, Marek Polacek wrote:
> 2016-09-23 Marek Polacek <polacek@redhat.com>
>
> PR c/77490
...
> * c-c++-common/Wbool-operation-1.c: New test.
I've noticed this test fails on i686-linux and likely also on powerpc-linux.
Fixed thusly, committed to trunk as obvious:
2016-10-01 Jakub Jelinek <jakub@redhat.com>
PR c/77490
* c-c++-common/Wbool-operation-1.c: Add -Wno-psabi to dg-options.
Add dg-prune-output directive.
--- gcc/testsuite/c-c++-common/Wbool-operation-1.c.jj 2016-09-26 20:22:23.000000000 +0200
+++ gcc/testsuite/c-c++-common/Wbool-operation-1.c 2016-10-01 01:39:47.878097701 +0200
@@ -1,6 +1,6 @@
/* PR c/77490 */
/* { dg-do compile } */
-/* { dg-options "-Wall" } */
+/* { dg-options "-Wall -Wno-psabi" } */
#ifndef __cplusplus
# define bool _Bool
@@ -34,3 +34,5 @@ fn (bool b, bool b2, T b3, int n, v4si v
return r;
}
+
+/* { dg-prune-output ".*GCC vector passed by reference.*" } */
Jakub