------- Comment #2 from hjl at lucon dot org 2007-12-17 19:04 ------- Created an attachment (id=14786) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14786&action=view) Dump files.
Here are dump files. I think there may be some memory corruptions: GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 Compiler executable checksum: f98be6b5bc4201f3bb3844a43442bc6b Program received signal SIGSEGV, Segmentation fault. 0x000000000080ae61 in safe_cond_expr_check (slot=0x10384c0, data=0x7fbffff254) at /net/gnu-13/export/gnu/src/gcc/gcc/gcc/ipa-struct-reorg.c:3081 3081 if (TREE_CODE (acc->stmt) == COND_EXPR) (gdb) list 3076 static int 3077 safe_cond_expr_check (void **slot, void *data) 3078 { 3079 struct access_site *acc = *(struct access_site **) slot; 3080 3081 if (TREE_CODE (acc->stmt) == COND_EXPR) 3082 { 3083 if (!is_safe_cond_expr (acc->stmt)) 3084 { 3085 if (dump_file) (gdb) p acc $1 = (struct access_site *) 0x70 (gdb) bt #0 0x000000000080ae61 in safe_cond_expr_check (slot=0x10384c0, data=0x7fbffff254) at /net/gnu-13/export/gnu/src/gcc/gcc/gcc/ipa-struct-reorg.c:3081 #1 0x0000000000ab5c8c in htab_traverse_noresize (htab=0x103fba0, callback=0x80ae42 <safe_cond_expr_check>, info=0x7fbffff254) at /net/gnu-13/export/gnu/src/gcc/gcc/libiberty/hashtab.c:750 #2 0x0000000000ab5cfb in htab_traverse (htab=0x103fba0, callback=0x80ae42 <safe_cond_expr_check>, info=0x7fbffff254) at /net/gnu-13/export/gnu/src/gcc/gcc/libiberty/hashtab.c:765 #3 0x000000000080bd49 in check_cond_exprs () at /net/gnu-13/export/gnu/src/gcc/gcc/gcc/ipa-struct-reorg.c:3547 #4 0x000000000080c535 in collect_data_accesses () at /net/gnu-13/export/gnu/src/gcc/gcc/gcc/ipa-struct-reorg.c:3830 #5 0x000000000080c71a in reorg_structs () at /net/gnu-13/export/gnu/src/gcc/gcc/gcc/ipa-struct-reorg.c:3944 #6 0x000000000080c739 in reorg_structs_drive () at /net/gnu-13/export/gnu/src/gcc/gcc/gcc/ipa-struct-reorg.c:3967 #7 0x00000000005e2530 in execute_one_pass (pass=0xf307a0) at /net/gnu-13/export/gnu/src/gcc/gcc/gcc/passes.c:1118 #8 0x00000000005e26ef in execute_ipa_pass_list (pass=0xf307a0) at /net/gnu-13/export/gnu/src/gcc/gcc/gcc/passes.c:1187 #9 0x00000000007fa210 in ipa_passes () at /net/gnu-13/export/gnu/src/gcc/gcc/gcc/cgraphunit.c:1339 BTW, I configured gcc with --enable-checking=assert. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34472