+2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
+
+ PR c++/53261
+ * c-common.c (warn_logical_operator): Check that argument of
+ integer_zerop is not NULL.
+
2012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR c/43772
in0_p = !in0_p;
tem = build_range_check (UNKNOWN_LOCATION, type, lhs, in0_p, low0, high0);
- if (integer_zerop (tem))
+ if (tem && integer_zerop (tem))
return;
rhs = make_range (op_right, &in1_p, &low1, &high1, &strict_overflow_p);
in1_p = !in1_p;
tem = build_range_check (UNKNOWN_LOCATION, type, rhs, in1_p, low1, high1);
- if (integer_zerop (tem))
+ if (tem && integer_zerop (tem))
return;
/* If both expressions have the same operand, if we can merge the