This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/18904] [4.0 Regression] 4.0-20041205 regression ICE with -O3
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Dec 2004 15:39:10 -0000
- Subject: [Bug tree-optimization/18904] [4.0 Regression] 4.0-20041205 regression ICE with -O3
- References: <20041209150347.18904.andre.maute@gmx.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-12-09 15:39 -------
here is the patch (for some reason I cannot send it out, stupid mail servers):
Index: tree-chrec.c
===============================================================
====
RCS file: /cvs/gcc/gcc/gcc/tree-chrec.c,v
retrieving revision 2.11
diff -u -p -r2.11 tree-chrec.c
--- tree-chrec.c 13 Oct 2004 03:48:03 -0000 2.11
+++ tree-chrec.c 9 Dec 2004 15:28:44 -0000
@@ -983,7 +983,7 @@ chrec_convert (tree type,
default:
{
- tree res = convert (type, chrec);
+ tree res = fold_convert (type, chrec);
/* Don't propagate overflows. */
TREE_OVERFLOW (res) = 0;
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18904