Consider the attached code ice.c . When compiled, it is giving an internal compiler error. I was not able to reduce it any further. Would appreciate if someone can reduce it further.
> gcc -c ice.c ice.c: In function 'd_substitution': ice.c:23: internal compiler error: Bus Error Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. > gcc -v Using built-in specs. Target: sparc-sun-solaris2.8 Configured with: /home/kkusuman/software/unZipped/gcc-4.4-20090109/configure --enable-languages=c,c++,fortran --prefix=/home/kkusuman/software/myroot/gcc-4.4-20090109 --with-gnu-as --with-as=/home/kkusuman/software/myroot/bin/as --with-gnu-ld --with-ld=/home/kkusuman/software/myroot/bin/ld Thread model: posix gcc version 4.4.0 20090109 (experimental) (GCC) Here is the gdb backtrace > gdb > /home/kkusuman/software/myroot/gcc-4.4-20090109/libexec/gcc/sparc-sun-solaris2.8/4.4.0/cc1 > GNU gdb 6.8.0.20090120 Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "sparc-sun-solaris2.8"... (gdb) run ice.c Starting program: /home/kkusuman/software/myroot/gcc-4.4-20090109/libexec/gcc/sparc-sun-solaris2.8/4.4.0/cc1 ice.c d_substitution Analyzing compilation unit Performing interprocedural optimizations <visibility> <early_local_cleanups> <summary generate> <inline>Assembling functions: d_substitution Program received signal SIGSEGV, Segmentation fault. 0x0040bea8 in compare_pairs (p1=0x8469e0, p2=0x8469ec) at /home/kkusuman/software/unZipped/gcc-4.4-20090109/gcc/tree-ssa-coalesce.c:318 318 result = (* pp2)->cost - (* pp1)->cost; (gdb) bt #0 0x0040bea8 in compare_pairs (p1=0x8469e0, p2=0x8469ec) at /home/kkusuman/software/unZipped/gcc-4.4-20090109/gcc/tree-ssa-coalesce.c:318 #1 0xff1cb8d0 in qsort () from /usr/lib/libc.so.1 #2 0x0040f8d8 in coalesce_ssa_name () at /home/kkusuman/software/unZipped/gcc-4.4-20090109/gcc/tree-ssa-coalesce.c:434 #3 0x003c6528 in rewrite_out_of_ssa () at /home/kkusuman/software/unZipped/gcc-4.4-20090109/gcc/tree-outof-ssa.c:1353 #4 0x002a99c8 in execute_one_pass (pass=0x79d30c) at /home/kkusuman/software/unZipped/gcc-4.4-20090109/gcc/passes.c:1279 #5 0x002a9c58 in execute_pass_list (pass=0x79d30c) at /home/kkusuman/software/unZipped/gcc-4.4-20090109/gcc/passes.c:1328 #6 0x003c1d08 in tree_rest_of_compilation (fndecl=0xfefb6280) at /home/kkusuman/software/unZipped/gcc-4.4-20090109/gcc/tree-optimize.c:419 #7 0x0053a37c in cgraph_expand_function (node=0xfef0ec00) at /home/kkusuman/software/unZipped/gcc-4.4-20090109/gcc/cgraphunit.c:1047 #8 0x0053a624 in cgraph_output_in_order () at /home/kkusuman/software/unZipped/gcc-4.4-20090109/gcc/cgraphunit.c:1195 #9 0x0053c768 in cgraph_optimize () at /home/kkusuman/software/unZipped/gcc-4.4-20090109/gcc/cgraphunit.c:1306 #10 0x000265d0 in c_write_global_declarations () at /home/kkusuman/software/unZipped/gcc-4.4-20090109/gcc/c-decl.c:8074 #11 0x0036a6a8 in toplev_main (argc=<value optimized out>, argv=<value optimized out>) at /home/kkusuman/software/unZipped/gcc-4.4-20090109/gcc/toplev.c:981 #12 0x00012780 in _start () at /home/kkusuman/software/unZipped/gcc-4.4-20090109/gcc/config/sparc/sol2-c1.asm:106 Initially, I asked this question on gcc-help http://gcc.gnu.org/ml/gcc-help/2009-01/msg00109.html . I narrowed down the problem further and reporting it here. thanks raju -- Summary: internal compiler error Product: gcc Version: 4.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: kamaraju at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38981