gcc version 4.3.0 and 4.4.0 have an ICE when compiling a small piece of Firefox code. It happens with -O1, 2, or 3 and does not with -O0 or -Os.
The ICE is as follows: x86_64-pc-mingw32-g++: warning: -pipe ignored because -save-temps specified /mnt/dump/src/mozilla/mozilla/security/manager/ssl/src/nsCipherInfo.cpp: In constructor nsCipherInfo::nsCipherInfo(PRUint16): /mnt/dump/src/mozilla/mozilla/security/manager/ssl/src/nsCipherInfo.cpp:73: internal compiler error: in create_mem_ref, at tree-ssa-address.c:603 The cpp file in question is here: http://mxr.mozilla.org/mozilla/source/security/manager/ssl/src/nsCipherInfo.cpp A gdb traceback is here: (gdb) where #0 internal_error (gmsgid=0x899e0ca "in %s, at %s:%d") at ../../gcc/gcc/diagnostic.c:598 #1 0x082bd2df in fancy_abort (file=0x89de4d4 "../../gcc/gcc/tree-ssa-address.c", line=603, function=0x89de5c8 "create_mem_ref") at ../../gcc/gcc/diagnostic.c:654 #2 0x0856b25c in create_mem_ref (bsi=0xbfde871c, type=0xb6cfb3a8, addr=0xbfde8660) at ../../gcc/gcc/tree-ssa-address.c:603 #3 0x085c03c7 in rewrite_use_address (data=0xbfde891c, use=0x8c499c8, cand=0x8c2daa8) at ../../gcc/gcc/tree-ssa-loop-ivopts.c:5227 #4 0x085c3f4c in rewrite_uses (data=0xbfde891c) at ../../gcc/gcc/tree-ssa-loop-ivopts.c:5286 #5 0x085c8659 in tree_ssa_iv_optimize_loop (data=0xbfde891c, loop=<value optimized out>) at ../../gcc/gcc/tree-ssa-loop-ivopts.c:5485 #6 0x085c8c75 in tree_ssa_iv_optimize () at ../../gcc/gcc/tree-ssa-loop-ivopts.c:5518 #7 0x085d7295 in tree_ssa_loop_ivopts () at ../../gcc/gcc/tree-ssa-loop.c:580 #8 0x084276ef in execute_one_pass (pass=0x8ae7680) at ../../gcc/gcc/passes.c:1127 #9 0x084278f7 in execute_pass_list (pass=0x8ae7680) at ../../gcc/gcc/passes.c:1180 #10 0x0842790a in execute_pass_list (pass=0x8ae72c0) at ../../gcc/gcc/passes.c:1181 #11 0x0842790a in execute_pass_list (pass=0x8ae6b00) at ../../gcc/gcc/passes.c:1181 #12 0x08523dec in tree_rest_of_compilation (fndecl=0xb749e7e0) at ../../gcc/gcc/tree-optimize.c:420 #13 0x08715b98 in cgraph_expand_function (node=0xb6d17410) at ../../gcc/gcc/cgraphunit.c:1157 #14 0x0871817e in cgraph_optimize () at ../../gcc/gcc/cgraphunit.c:1220 #15 0x0810c285 in cp_write_global_declarations () at ../../gcc/gcc/cp/decl2.c:3471 #16 0x084b192c in toplev_main (argc=13, argv=0xbfde8bf4) at ../../gcc/gcc/toplev.c:971 #17 0x08225792 in main (argc=1634296879, argv=0x736f6e67) at ../../gcc/gcc/main.c:35 I will upload the preprocessed source. -- Summary: ICE without -fno-tree-ch Product: gcc Version: 4.4.0 Status: UNCONFIRMED Severity: major Priority: P3 Component: tree-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: nightstrike at gmail dot com GCC host triplet: i686-pc-linux GCC target triplet: x86_64-pc-mingw32 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35842