diff mbox

C/C++ PATCH to implement -Wbool-operation (PR c/77490)

Message ID 20160930234601.GK7282@tucnak.redhat.com
State New
Headers show

Commit Message

Jakub Jelinek Sept. 30, 2016, 11:46 p.m. UTC
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.


	Jakub

Comments

Marek Polacek Oct. 1, 2016, 11:33 a.m. UTC | #1
On Sat, Oct 01, 2016 at 01:46:02AM +0200, Jakub Jelinek wrote:
> 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.

Sorry.  I must remember this when testing sth with vectors...

	Marek
diff mbox

Patch

--- 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.*" } */