This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/21030] [4.1 Regression] ICE in set_value_range building 176.gcc with -O2
- From: "wanderer at rsu dot ru" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Apr 2005 20:08:45 -0000
- Subject: [Bug tree-optimization/21030] [4.1 Regression] ICE in set_value_range building 176.gcc with -O2
- References: <20050414204122.21030.janis@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From wanderer at rsu dot ru 2005-04-19 20:08 -------
Proposed patch (in #4) work fine at FreeBSD 5.1
And fix my tescase variant:
__inline void f(int a)
{
int i;
if (a < 0) {
for (i = 0, a = ~a; a; i++) {
if ((a & 1) != 0) {
f(i);
}
}
}
}
void g(void) { f(0); }
Without proposed patch i can't bootstrap LLVM using gcc CVS mainline.
bootstrap die at build of gcc version 3.4-llvm 20030924 (part of LLVM
distribution):
gcc/haifa-sched.c:737: internal compiler error: in set_value_range, at tree-
vrp.c:124
Note: haifa-sched.c isn't modified.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21030