[Bug c/46996] xgcc: Internal error: Illegal instruction (program cc1)

cryintothebluesky at googlemail dot com gcc-bugzilla@gcc.gnu.org
Sat Dec 18 00:17:00 GMT 2010


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

--- Comment #3 from cryintothebluesky at googlemail dot com 2010-12-18 00:16:48 UTC ---
(In reply to comment #2)
> Please run cc1 under gdb and show us the "Illegal instruction".

I think the illegal instruction is caused by stack overflow:

gdb prev-gcc/cc1 gcc/cc1.core

Core was generated by `cc1'.
Program terminated with signal 4, Illegal instruction.
#0  0x0000000000cde521 in gimplify_expr (expr_p=0x7f7ffba88df0, 
    pre_p=0x7f7fffe04730, post_p=0x7f7fffe00c08, 
    gimple_test_f=0xc1c425 <is_gimple_lvalue>, fallback=2)
    at /usr/include/stdio.h:442
442             if (--_p->_w >= 0 || (_p->_w >= _p->_lbfsize && (char)_c !=
'\n'))

... Many other frames

#1667 0x0000000000cd371a in gimplify_stmt (stmt_p=0x7f7ffc2d1598, 
    seq_p=0x7f7fffffa8a8) at /usr/include/stdio.h:442
#1668 0x0000000000ce51d1 in gimplify_body (body_p=0x7f7ffc2d1598, 
    fndecl=0x7f7ffc2d1500, do_parms=1 '\001') at /usr/include/stdio.h:442
#1669 0x0000000000ce5872 in gimplify_function_tree (fndecl=0x7f7ffc2d1500)
    at /usr/include/stdio.h:442
#1670 0x0000000001f3d4d3 in cgraph_analyze_function (node=0x7f7ffbc6b4e0)
    at /usr/include/stdio.h:442
#1671 0x0000000001f3da3a in cgraph_analyze_functions ()
    at /usr/include/stdio.h:442
#1672 0x0000000001f3dea5 in cgraph_finalize_compilation_unit ()
    at /usr/include/stdio.h:442
#1673 0x00000000004fa8c7 in c_write_global_declarations ()
    at /usr/include/stdio.h:442
#1674 0x000000000128b201 in compile_file () at /usr/include/stdio.h:442
#1675 0x000000000128d37c in do_compile () at /usr/include/stdio.h:442
#1676 0x000000000128d443 in toplev_main (argc=52, argv=0x7f7fffffabe0)
    at /usr/include/stdio.h:442
#1677 0x00000000006c5be3 in main (argc=52, argv=0x7f7fffffabe0)
    at /usr/include/stdio.h:442
(gdb)



More information about the Gcc-bugs mailing list