[Bug middle-end/28776] [4.2 Regression] dwarf2out.c:2160: ICE: in build_polynomial_chrec, at tree-chrec.h:108
rakdver at atrey dot karlin dot mff dot cuni dot cz
gcc-bugzilla@gcc.gnu.org
Tue Aug 22 08:05:00 GMT 2006
------- Comment #11 from rakdver at atrey dot karlin dot mff dot cuni dot cz 2006-08-22 08:05 -------
Subject: Re: [4.2 Regression] dwarf2out.c:2160: ICE:
in build_polynomial_chrec, at tree-chrec.h:108
The fix seems OK to me, could you please test and submit it?
> The following fixes it:
>
> Index: tree-scalar-evolution.c
> ===================================================================
> *** tree-scalar-evolution.c (revision 116257)
> --- tree-scalar-evolution.c (working copy)
> *************** fold_used_pointer (tree expr)
> *** 1847,1852 ****
> --- 1847,1854 ----
> if (new0 == op0 && new1 == op1)
> return expr;
>
> + new0 = chrec_convert (TREE_TYPE (expr), new0, NULL_TREE);
> + new1 = chrec_convert (TREE_TYPE (expr), new1, NULL_TREE);
> if (code == PLUS_EXPR)
> expr = chrec_fold_plus (TREE_TYPE (expr), new0, new1);
> else
>
>
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28776
More information about the Gcc-bugs
mailing list