I get a segfault with 20060530 when building xstow that I didn't get with 20060508. The segfault doesn't show up when I run g++ on the preprocessed file but pinskia pointed out that I should use --param ggc-min-expand=0 --param ggc-min-heapsize=0, and indeed, when I add --param ggc-min-expand=0 I see it - but also with 20060508.
It turns out that this segfault was introduced sometime between 20060325 and 20060419. (And, in fact, compiling xstow with 20060419 also segfaults, just not 20060508.) (sid)492:[EMAIL PROTECTED]: ~] /usr/lib/gcc-snapshot/bin/g++ -c --param ggc-min-expand=0 -O2 segfault.c segfault.c:3617: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. zsh: exit 1 /usr/lib/gcc-snapshot/bin/g++ -c --param ggc-min-expand=0 -O2 segfault.c (sid)493:[EMAIL PROTECTED]: ~] /usr/lib/gcc-snapshot/bin/g++ -c --param ggc-min-expand=0 segfault.c (sid)494:[EMAIL PROTECTED]: ~] Program received signal SIGSEGV, Segmentation fault. cgraph_decide_inlining_incrementally (node=0x8d619d00, early=1 '\001') at /home/tbm/scratch/gcc/gcc/ipa-inline.c:1055 1055 if (e->callee->local.disregard_inline_limits (gdb) where #0 cgraph_decide_inlining_incrementally (node=0x8d619d00, early=1 '\001') at /home/tbm/scratch/gcc/gcc/ipa-inline.c:1055 #1 0x085835bd in cgraph_early_inlining () at /home/tbm/scratch/gcc/gcc/ipa-inline.c:1163 #2 0x0852c1e6 in execute_one_pass (pass=0x874b660) at /home/tbm/scratch/gcc/gcc/passes.c:864 #3 0x0852c417 in execute_ipa_pass_list (pass=0x874b660) at /home/tbm/scratch/gcc/gcc/passes.c:925 #4 0x0857f1f5 in cgraph_optimize () at /home/tbm/scratch/gcc/gcc/cgraphunit.c:1378 #5 0x080d66ca in cp_finish_file () at /home/tbm/scratch/gcc/gcc/cp/decl2.c:3112 #6 0x0819efff in c_common_parse_file (set_yydebug=0) at /home/tbm/scratch/gcc/gcc/c-opts.c:1165 #7 0x084f6f7d in toplev_main (argc=1, argv=0xaff02de4) at /home/tbm/scratch/gcc/gcc/toplev.c:999 #8 0xa7dc1eb0 in __libc_start_main () from /lib/tls/libc.so.6 #9 0x08049c11 in _start () at ../sysdeps/i386/elf/start.S:119 (gdb) -- Summary: [4.2 regression] segfault in ipa-inline.c, if (e- >callee->local.disregard_inline_limits Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: tbm at cyrius dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27882