+2006-08-26 Richard Guenther <rguenther@suse.de>
+
+ PR middle-end/28814
+ * fold-const.c (fold_binary): Fold temporary to correct
+ type before constructing new comparison.
+
2006-08-25 Fariborz Jahanian <fjahanian@apple.com>
PR c/28418
&& TREE_CODE (TREE_OPERAND (arg0, 1)) == INTEGER_CST
&& 0 != (tem = const_binop (TREE_CODE (arg0) == PLUS_EXPR
? MINUS_EXPR : PLUS_EXPR,
- arg1, TREE_OPERAND (arg0, 1), 0))
+ fold_convert (TREE_TYPE (arg0), arg1),
+ TREE_OPERAND (arg0, 1), 0))
&& ! TREE_CONSTANT_OVERFLOW (tem))
return fold_build2 (code, type, TREE_OPERAND (arg0, 0), tem);
+2006-08-26 Richard Guenther <rguenther@suse.de>
+
+ PR middle-end/28814
+ * gcc.dg/torture/pr28814.c: New testcase.
+
2006-08-25 Joseph S. Myers <joseph@codesourcery.com>
PR c/28418
--- /dev/null
+/* { dg-do compile } */
+
+struct w49
+{
+ union
+ {
+ }
+ value;
+};
+f9887 (struct w49 a23040)
+{
+ unsigned long r9887;
+ if (((struct structure_type24753 *) (r9887 - 1)) == ((void *) 0))
+ {
+ backtrace ("stalin.sc", 7222, 248274);
+ }
+}