This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC, patch] An attempt to fix PR tree-optimization/33833 ICE in build2_stat, at tree.c:3110
- From: Zdenek Dvorak <rakdver at kam dot mff dot cuni dot cz>
- To: Ira Rosen <IRAR at il dot ibm dot com>
- Cc: gcc-patches at gcc dot gnu dot org, pinskia at gmail dot com
- Date: Thu, 25 Oct 2007 15:39:24 +0200
- Subject: Re: [RFC, patch] An attempt to fix PR tree-optimization/33833 ICE in build2_stat, at tree.c:3110
- References: <OF27FBAD08.A6DBF120-ONC225737F.003A189C-C225737F.0048874F@il.ibm.com>
Hi,
> The problem is I don't know if the conversion of data-ref's init or offset
> to unsigned type is correct. AFAIU, both init and offset can be negative
> (and this is the reason why they are ssizetype).
this conversion does not affect the result of the addition, and
POINTER_PLUS_EXPR requires the offset to have sizetype, so
> Index: ChangeLog
> ===================================================================
> --- ChangeLog (revision 129623)
> +++ ChangeLog (working copy)
> @@ -1,5 +1,11 @@
> 2007-10-25 Ira Rosen <irar@il.ibm.com>
>
> + PR tree-optimization/33833
> + * tree-vect-analyze.c (vect_analyze_data_refs): Use POINTER_PLUS_EXPR
> + and convert init to sizetype in inner_base construction.
> +
the patch is OK.
Zdenek