This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/51071] [4.7 Regression] ICE in gimple_has_side_effects, at gimple.c:2513


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51071

--- Comment #6 from pageexec at freemail dot hu 2012-05-21 11:41:10 UTC ---
Created attachment 27458
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27458
test case for gcc 4.6.x

this is a compressed test case (would be too big to attach otherwise i think).
compile with:

 gcc -c netdev.i -o netdev.o -O2 -fno-delete-null-pointer-checks

(the -fno-delete-null-pointer-checks switch is important). you'll also need a
debug build of gcc (i had
--enable-checking=assert,misc,rtl,rtlflag,runtime,tree here) and the error i
get is:

drivers/staging/sbe-2t3e3/netdev.c: In function 't3e3_open':
drivers/staging/sbe-2t3e3/netdev.c:85:5: internal compiler error: in
gimple_has_side_effects, at gimple.c:2329

with the code around gimple.c:2329 being:

2324       for (i = 0; i < gimple_num_ops (s); i++)
2325 ÂÂÂÂÂÂÂÂ{
2326 ÂÂÂÂÂÂÂÂ  tree op = gimple_op (s, i);
2327 ÂÂÂÂÂÂÂÂ  if (op && TREE_SIDE_EFFECTS (op))
2328 ÂÂÂÂÂÂÂÂ    {
2329 ÂÂÂÂÂÂÂÂ      gcc_checking_assert (gimple_has_volatile_ops (s));
2330 ÂÂÂÂÂÂÂÂ      return true;
2331 ÂÂÂÂÂÂÂÂ    }
2332 ÂÂÂÂÂÂÂÂ}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]