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 »·······}