This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]