------- Comment #9 from rguenth at gcc dot gnu dot org 2009-01-24 09:27 -------
I am testing the following.
@@ -4195,7 +4184,8 @@ gimplify_modify_expr (tree *expr_p, gimp
side as statements and throw away the assignment. Do this after
gimplify_modify_expr_rhs so we handle TARGET_EXPRs of addressable
types properly. */
- if (zero_sized_type (TREE_TYPE (*from_p)) && !want_value)
+ if (int_expr_size (*from_p) == 0
+ && !want_value)
{
gimplify_stmt (from_p, pre_p);
gimplify_stmt (to_p, pre_p);
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |rguenth at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Last reconfirmed|2009-01-21 22:19:31 |2009-01-24 09:27:19
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38851