+2009-05-26 Richard Guenther <rguenther@suse.de>
+
+ PR middle-end/40248
+ Revert
+ * expr.c (expand_expr_real_1): Avoid calling do_store_flag
+ with mismatched comparison modes.
+
+ * expr.c (expand_expr_real_1): Expand the operand of a
+ VIEW_CONVERT_EXPR in its natural mode.
+
2009-05-26 Ian Lance Taylor <iant@google.com>
* Makefile.in (COMPILER, COMPILER_FLAGS): Define.
}
if (!op0)
- op0 = expand_expr (TREE_OPERAND (exp, 0), NULL_RTX, mode, modifier);
+ op0 = expand_expr (TREE_OPERAND (exp, 0),
+ NULL_RTX, VOIDmode, modifier);
/* If the input and output modes are both the same, we are done. */
if (mode == GET_MODE (op0))
case LTGT_EXPR:
temp = do_store_flag (exp,
modifier != EXPAND_STACK_PARM ? target : NULL_RTX,
- (tmode != VOIDmode
- /* do_store_flag does not handle target modes
- of a different class than the comparison mode.
- Avoid ICEing in convert_move. */
- && GET_MODE_CLASS (tmode) == GET_MODE_CLASS (mode))
- ? tmode : mode);
+ tmode != VOIDmode ? tmode : mode);
if (temp != 0)
return temp;