2007-08-09 Andrew Pinski <andrew_pinski@playstation.sony.com>
+ PR c/32796
+ * c-typeck.c (build_binary_op): Check for non pointer types before
+ calling int_fits_type_p.
+
+2007-08-09 Andrew Pinski <andrew_pinski@playstation.sony.com>
+
PR middle-end/32813
* fold-const.c (omit_one_operand): Return only the ommitted expression
if the result is an empty statement.
< TYPE_PRECISION (result_type))
&& (type
= c_common_signed_or_unsigned_type (unsigned1,
- TREE_TYPE (arg1)),
- int_fits_type_p (arg0, type)))
+ TREE_TYPE (arg1)))
+ && !POINTER_TYPE_P (type)
+ && int_fits_type_p (arg0, type))
result_type = type;
else if (TREE_CODE (arg1) == INTEGER_CST
&& (unsigned0 || !uns)
< TYPE_PRECISION (result_type))
&& (type
= c_common_signed_or_unsigned_type (unsigned0,
- TREE_TYPE (arg0)),
- int_fits_type_p (arg1, type)))
+ TREE_TYPE (arg0)))
+ && !POINTER_TYPE_P (type)
+ && int_fits_type_p (arg1, type))
result_type = type;
}
2007-08-09 Andrew Pinski <andrew_pinski@playstation.sony.com>
+ PR c/32796
+ * gcc.c-torture/compile/pr32796.c: New test.
+
+2007-08-09 Andrew Pinski <andrew_pinski@playstation.sony.com>
+
PR middle-end/32813
* gfortran.fortran-torture/compile/emptyif-1.f90: New test.
* lib/fortran-torture.exp (fortran-torture): Use TORTURE_OPTIONS instead