[Committed] Fix PR 38565 (ICE with vector constants and C++) for 4.3

Andrew Pinski pinskia@gmail.com
Thu Dec 18 22:41:00 GMT 2008


Hi,
  The problem here is that we sometimes could get a GIMPLE_MODIFY_STMT
so the use of TREE_OPERAND is wrong and could cause an ICE.  This
comes from C++ code where there is a TARGET_EXPR and the statement has
been already changed to a GIMPLE_MODIFY_STMT so we would ICE if the
vector constructor was a constant.

Committed to the 4.3 branch as obvious after a boostrap/test on
i386-darwin8.11 with no regressions.
Note this does not effect the trunk as the gimplifier has changed and
GIMPLE_MODIFY_STMT has since been removed.

Thanks,
Andrew Pinski

ChangeLog:
* gimplifier.c (gimplify_init_constructor): For constant vector
CONSTRUCTORs use GENERIC_TREE_OPERAND instead of TREE_OPERAND.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fixpr38565.diff.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20081218/5e21dc06/attachment.txt>


More information about the Gcc-patches mailing list