This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/26859] [4.2 Regression] ICE Segmentation Fault
- From: "sebastian dot pop at cri dot ensmp dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Mar 2006 00:27:48 -0000
- Subject: [Bug tree-optimization/26859] [4.2 Regression] ICE Segmentation Fault
- References: <bug-26859-11706@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #9 from sebastian dot pop at cri dot ensmp dot fr 2006-03-29 00:27 -------
Created an attachment (id=11147)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11147&action=view)
proposed fix
this patch (not tested yet) fixes the problem: it avoids a division by zero.
Part of the problem is that convert returns a step for which it sets the
overflow flag when converting unsigned ffffffe to int -2. The patch resets
the overflow flag that has no sense for the step of a sequence.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26859