[ forwarded from http://bugs.debian.org/508576 ] Michael Buesch reported the following segfault with gcc 4.3 on powerpc with -maltivec. I confirmed that the bug is still present in 4.3 from SVN and that it's not present on the trunk. ./xgcc -B. -maltivec --param ggc-min-expand=0 --param ggc-min-heapsize=0 -O3 -c ~/ad_imaadpcm.i libmpcodecs/ad_imaadpcm.c: In function 'ms_ima_adpcm_decode_block': libmpcodecs/ad_imaadpcm.c:273: internal compiler error: Segmentation fault Please submit a full bug report,
Program received signal SIGSEGV, Segmentation fault. 0x1006cda0 in ggc_set_mark (p=0x4) at gcc/ggc-page.c:605 605 return base[L1][L2]; (gdb) where #0 0x1006cda0 in ggc_set_mark (p=0x4) at gcc/ggc-page.c:605 #1 0x1000b9c8 in gt_ggc_mx_lang_tree_node (x_p=<value optimized out>) at ./gt-c-decl.h:75 #2 0x1000c9a4 in gt_ggc_mx_lang_tree_node (x_p=<value optimized out>) at ./gt-c-decl.h:322 #3 0x1000c2c8 in gt_ggc_mx_lang_tree_node (x_p=<value optimized out>) at ./gt-c-decl.h:356 #4 0x1000c5ec in gt_ggc_mx_lang_tree_node (x_p=<value optimized out>) at ./gt-c-decl.h:376 #5 0x1000c254 in gt_ggc_mx_lang_tree_node (x_p=<value optimized out>) at ./gt-c-decl.h:338 #6 0x1000bc20 in gt_ggc_mx_lang_tree_node (x_p=<value optimized out>) at ./gt-c-decl.h:497 #7 0x1000c274 in gt_ggc_mx_lang_tree_node (x_p=<value optimized out>) at ./gt-c-decl.h:340 #8 0x1000bc20 in gt_ggc_mx_lang_tree_node (x_p=<value optimized out>) at ./gt-c-decl.h:497 #9 0x1000c264 in gt_ggc_mx_lang_tree_node (x_p=<value optimized out>) at ./gt-c-decl.h:339 #10 0x1000c294 in gt_ggc_mx_lang_tree_node (x_p=<value optimized out>) at ./gt-c-decl.h:342 #11 0x1000c244 in gt_ggc_mx_lang_tree_node (x_p=<value optimized out>) at ./gt-c-decl.h:337 #12 0x1000c944 in gt_ggc_mx_lang_tree_node (x_p=<value optimized out>) at ./gt-c-decl.h:316 #13 0x1018cdd0 in gt_ggc_mx_cgraph_node (x_p=<value optimized out>) at gtype-desc.c:149 #14 0x1018d15c in gt_ggc_m_P11cgraph_node4htab (x_p=<value optimized out>) at gtype-desc.c:1852 #15 0x10179670 in ggc_mark_roots () at gcc/ggc-common.c:117 #16 0x1006d818 in ggc_collect () at gcc/ggc-page.c:1906 #17 0x101cc074 in execute_todo (flags=2) at gcc/passes.c:1013 #18 0x101cc240 in execute_one_pass (pass=0x1072fde8) at gcc/passes.c:1145 #19 0x101cc4c8 in execute_pass_list (pass=0x1072fde8) at gcc/passes.c:1176 #20 0x102988a0 in tree_rest_of_compilation (fndecl=0xef490c80) at gcc/tree-optimize.c:404 #21 0x103c8a38 in cgraph_expand_function (node=0xee992100) at gcc/cgraphunit.c:1166 #22 0x103cac44 in cgraph_optimize () at gcc/cgraphunit.c:1229 #23 0x10014e08 in c_write_global_declarations () at gcc/c-decl.c:8086 #24 0x10258f74 in toplev_main (argc=<value optimized out>, argv=<value optimized out>) at gcc/toplev.c:1055 #25 0x1006c920 in main (argc=<value optimized out>, argv=<value optimized out>) at gcc/main.c:35 (gdb)
When I add -fno-tree-vrp, I get: libmpcodecs/ad_imaadpcm.c:155: internal compiler error: in c_expand_expr, at c-common.c:4543
Created attachment 16916 [details] Preprocessed source
*** Bug 37044 has been marked as a duplicate of this bug. ***
GCC 4.3.4 is being released, adjusting target milestone.
GCC 4.3.5 is being released, adjusting target milestone.
Fixed for 4.4.0.