This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Proposed location for variable sizes etc in ARRAY_REF and COMPONENT_REF
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- To: bosch at gnat dot com
- Cc: gcc-patches at gcc dot gnu dot org, rth at redhat dot com
- Date: Wed, 23 Jun 04 16:48:58 EDT
- Subject: Re: Proposed location for variable sizes etc in ARRAY_REF and COMPONENT_REF
> I also was going to suggest PR8361. ;-) Is anybody working on fixing
> this?
Yes, Kenner is looking at it right now.
Well, the following "fixes" it, but I have no idea if it's really
right or not.
RTH?
*** gimplify.c 23 Jun 2004 07:43:19 -0000 2.23
--- gimplify.c 23 Jun 2004 20:45:16 -0000
*************** voidify_wrapper_expr (tree wrapper, tree
*** 902,906 ****
}
/* The C++ frontend already did this for us. */
! else if (TREE_CODE (*p) == INIT_EXPR)
temp = TREE_OPERAND (*p, 0);
/* If we're returning a dereference, move the dereference
--- 829,834 ----
}
/* The C++ frontend already did this for us. */
! else if (TREE_CODE (*p) == INIT_EXPR
! || TREE_CODE (*p) == TARGET_EXPR)
temp = TREE_OPERAND (*p, 0);
/* If we're returning a dereference, move the dereference