This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/23476] New: [4.1 Regression] ICE in VRP, remove_range_assertions
- 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: 19 Aug 2005 06:18:05 -0000
- Subject: [Bug tree-optimization/23476] New: [4.1 Regression] ICE in VRP, remove_range_assertions
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Testcase:
int h(int);
static inline int f(int t, const int i)
{
_Bool a = i < t;
if (a)
return h(t);
return 9;
}
int g(int t)
{
return f(t, 0x7FFFFFFF);
}
Compile with -O2 -fno-tree-copy-prop, and you will get an ICE:
t.c: In function ?g?:
t.c:12: internal compiler error: in remove_range_assertions, at tree-vrp.c:2767
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
This most likely can be produced with a much larger source but I cannot find it right now as copy-prop
does nothing interesting except for calling fold on all the statements which is just a waste of time.
--
Summary: [4.1 Regression] ICE in VRP, remove_range_assertions
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P2
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23476