[Bug middle-end/51071] New: [4.7 Regression] ICE in gimple_has_side_effects, at gimple.c:2513
belyshev at depni dot sinp.msu.ru
gcc-bugzilla@gcc.gnu.org
Wed Nov 9 21:52:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51071
Bug #: 51071
Summary: [4.7 Regression] ICE in gimple_has_side_effects, at
gimple.c:2513
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: middle-end
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: belyshev@depni.sinp.msu.ru
CC: law@redhat.com
Fails since r175114 http://gcc.gnu.org/ml/gcc-cvs/2011-06/msg00603.html
2011-06-16 Jeff Law <law@redhat.com>
* tree-ssa-threadupdate.c (struct redirection_data): New field
intermediate_edge.
...
// compile with -O2
void foo (void);
void bar (void *);
extern int t;
static void kmalloc_large (int size, int flags)
{
(void) size;
(void) flags;
foo ();
bar (({__here:&&__here;}));
}
static void kmalloc (int size, int flags)
{
if (size)
{
if ((unsigned long) size > 0x1000)
kmalloc_large (size, flags);
if (flags)
bar (({__here:&&__here;}));
}
}
void compress_file_range (int i, int j, int k)
{
int nr_pages = ({j < k;});
if (i || t)
kmalloc (0x1000UL * nr_pages, 0x40UL);
}
bug.c: In function 'compress_file_range':
bug.c:25:6: internal compiler error: in gimple_has_side_effects, at
gimple.c:2513
More information about the Gcc-bugs
mailing list