This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix PR tree-opt/32527: ICE in build2_stat (aff_combination_scale)
On 29 Jun 2007 20:48:12 -0700, Ian Lance Taylor <iant@google.com> wrote:
This looks incomplete to me. The comment in tree-affine.h says that
the type of comb->rest must be comb->type, but this change breaks that
invariant. Is the comment wrong?
This comment is wrong since the addition of POINTER_PLUS_EXPR. Though
it looks like there is a mistake in the whole tree-addine.c around the
type of rest.
I will look into fixing this more completely tomorrow. I think I
might have a patch already which fixes up tree-affine.c correctly at
work but I forgot to look at it before looking into this bug.
The reason why we hit this bug is because rest is not null and that is
because we go over MAX_AFF_ELTS (8).
Thanks,
Andrew Pinski