diff mbox

[tree-optimization] : Avoid !=/== 0/1 comparisons for boolean-typed argument

Message ID CAEwic4ajBuyMioHHNbxP+PfAekknMUZYYKO-nHVVfnjXbJYh5Q@mail.gmail.com
State New
Headers show

Commit Message

Kai Tietz Aug. 2, 2011, 7:32 p.m. UTC
Sorry, had a pasto in testcase.

Fixed at rev. 166205

2011-08-02  Kai Tietz  <ktietz@redhat.com>

	PR middle-end/49947
	* gcc.dg/tree-ssa/forwprop-15.c


Tested on x86_64-pc-linux-gnu.  Applied as obvious fix.

Regards,
Kai
diff mbox

Patch

Index: gcc.dg/tree-ssa/forwprop-15.c
===================================================================
--- gcc.dg/tree-ssa/forwprop-15.c       (revision 177170)
+++ gcc.dg/tree-ssa/forwprop-15.c       (working copy)
@@ -2,7 +2,7 @@ 
 /* { dg-options "-O2 -fdump-tree-forwprop1" }  */

 _Bool
-foo (_Bool a, _Bool b, _Bool c
+foo (_Bool a, _Bool b, _Bool c)
 {
   _Bool r1 = a == 0 & b != 0;
   _Bool r2 = b != 0 & c == 0;