[Bug tree-optimization/18904] [4.0 Regression] 4.0-20041205 regression ICE with -O3

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Dec 9 15:39:00 GMT 2004


------- 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



More information about the Gcc-bugs mailing list