I narrowed it down to commit 133403 (although whether that caused the bug or merely expose it, I don't know):
2008-03-21 Richard Guenther <[EMAIL PROTECTED]> * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop): Use is_gimple_min_invariant instead of TREE_INVARIANT. * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise. * tree-ssa-dom.c (record_equality): Likewise. * tree-inline.c (copy_body_r): Likewise. * tree-ssa-pre.c (make_values_for_stmt): Remove test for TREE_INVARIANT. The test case is 132k but it's cplus-dem.c in libiberty for -mcpu=m32cm : [EMAIL PROTECTED] pts/2 ~/m32c/gcc/m32c-elf/gcc $ ./cc1 -fpreprocessed /tmp/cplus-dem.i -quiet -dumpbase cplus-dem.c -mcpu=m32cm -auxbase-strip cplus-dem.o -g -O2 -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic -o cplus-dem.s ../../../../gcc/libiberty/cplus-dem.c: In function 'cplus_demangle_name_to_style': ../../../../gcc/libiberty/cplus-dem.c:807: internal compiler error: in build2_stat, at tree.c:3107 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. [ gdb ] where #0 fancy_abort (file=0x8c36cec "../../gcc/gcc/tree.c", line=3107, function=0x8c3795f "build2_stat") at ../../gcc/gcc/diagnostic.c:684 #1 0x088a5a5b in build2_stat (code=PLUS_EXPR, tt=0xb7d9bdd0, arg0=0xb7bd61e0, arg1=0xb7a635e4) at ../../gcc/gcc/tree.c:3107 #2 0x08392fef in fold_build2_stat (code=PLUS_EXPR, type=0xb7d9bdd0, op0=0xb7bd61e0, op1=0xb7a635e4) at ../../gcc/gcc/fold-const.c:13372 #3 0x0835561c in fold_binary (code=PLUS_EXPR, type=0xb7d9bdd0, op0=0xb7a635e4, op1=0xb7bd61e0) at ../../gcc/gcc/fold-const.c:9196 #4 0x08392fc6 in fold_build2_stat (code=PLUS_EXPR, type=0xb7d9bdd0, op0=0xb7a635e4, op1=0xb7bd61e0) at ../../gcc/gcc/fold-const.c:13370 #5 0x0871baa3 in create_mem_ref (bsi=0xbf8b52ec, type=0xb7f7e888, addr=0xbf8b52f8) at ../../gcc/gcc/tree-ssa-address.c:641 #6 0x08795e51 in rewrite_use_address (data=0xbf8b5428, use=0xac991f0, cand=0xace3e08) at ../../gcc/gcc/tree-ssa-loop-ivopts.c:5227 #7 0x08796155 in rewrite_use (data=0xbf8b5428, use=0xac991f0, cand=0xace3e08) at ../../gcc/gcc/tree-ssa-loop-ivopts.c:5286 #8 0x08796206 in rewrite_uses (data=0xbf8b5428) at ../../gcc/gcc/tree-ssa-loop-ivopts.c:5315 #9 0x08796b7f in tree_ssa_iv_optimize_loop (data=0xbf8b5428, loop=0xb7880b00) at ../../gcc/gcc/tree-ssa-loop-ivopts.c:5485 #10 0x08796c18 in tree_ssa_iv_optimize () at ../../gcc/gcc/tree-ssa-loop-ivopts.c:5518 #11 0x087aab13 in tree_ssa_loop_ivopts () at ../../gcc/gcc/tree-ssa-loop.c:580 #12 0x084abb81 in execute_one_pass (pass=0x8c80340) at ../../gcc/gcc/passes.c:1127 #13 0x084abccb in execute_pass_list (pass=0x8c80340) at ../../gcc/gcc/passes.c:1180 #14 0x084abce7 in execute_pass_list (pass=0x8c7ff80) at ../../gcc/gcc/passes.c:1181 #15 0x084abce7 in execute_pass_list (pass=0x8c7f7c0) at ../../gcc/gcc/passes.c:1181 #16 0x086bbe59 in tree_rest_of_compilation (fndecl=0xb7f7c700) at ../../gcc/gcc/tree-optimize.c:420 #17 0x08920435 in cgraph_expand_function (node=0xb7ea2900) at ../../gcc/gcc/cgraphunit.c:1157 #18 0x089205c6 in cgraph_expand_all_functions () at ../../gcc/gcc/cgraphunit.c:1220 #19 0x08920bd7 in cgraph_optimize () at ../../gcc/gcc/cgraphunit.c:1427 #20 0x08076db3 in c_write_global_declarations () at ../../gcc/gcc/c-decl.c:8063 #21 0x086238c3 in compile_file () at ../../gcc/gcc/toplev.c:968 #22 0x08625402 in do_compile () at ../../gcc/gcc/toplev.c:2158 #23 0x08625464 in toplev_main (argc=19, argv=0xbf8b5794) at ../../gcc/gcc/toplev.c:2190 #24 0x081250d2 in main (argc=Cannot access memory at address 0x20 ) at ../../gcc/gcc/main.c:35