Using native gcc to compile sparc of same source. The offending file belongs to newlib. Preprocessed output shortly.
$ gcc --version gcc (GCC) 4.5.0 20090919 (experimental) [trunk revision 151882] /users/joel/test-gcc/b-gcc1-sparc/./gcc/xgcc -B/users/joel/test-gcc/b-gcc1-sparc/./gcc/ -nostdinc -B/users/joel/test-gcc/b-gcc1-sparc/sparc-rtems4.10/newlib/ -isystem /users/joel/test-gcc/b-gcc1-sparc/sparc-rtems4.10/newlib/targ-include -isystem /users/joel/test-gcc/gcc-svn/newlib/libc/include -B/users/joel/test-gcc/install-svn/sparc-rtems4.10/bin/ -B/users/joel/test-gcc/install-svn/sparc-rtems4.10/lib/ -isystem /users/joel/test-gcc/install-svn/sparc-rtems4.10/include -isystem /users/joel/test-gcc/install-svn/sparc-rtems4.10/sys-include -DPACKAGE_NAME=\"newlib\" -DPACKAGE_TARNAME=\"newlib\" -DPACKAGE_VERSION=\"1.17.0\" -DPACKAGE_STRING=\"newlib\ 1.17.0\" -DPACKAGE_BUGREPORT=\"\" -I. -I/users/joel/test-gcc/gcc-svn/newlib/libm/common -O2 -DMALLOC_ALIGNMENT=8 -DMALLOC_PROVIDED -DEXIT_PROVIDED -DMISSING_SYSCALL_NAMES -DSIGNAL_PROVIDED -DREENTRANT_SYSCALLS_PROVIDED -DHAVE_NANOSLEEP -DHAVE_FCNTL -D_NO_GETLOGIN -D_NO_GETPWENT -D_NO_GETUT -D_NO_GETPASS -D_NO_SIGSET -fno-builtin -g -O2 -c -o lib_a-s_rint.o `test -f 's_rint.c' || echo '/users/joel/test-gcc/gcc-svn/newlib/libm/common/'`s_rint.c (high:SI (symbol_ref/u:SI ("*.LLC6") [flags 0x2]))/users/joel/test-gcc/gcc-svn/newlib/libm/common/s_log1p.c: In function 'log1p': /users/joel/test-gcc/gcc-svn/newlib/libm/common/s_log1p.c:215:1: internal compiler error: in mem_loc_descriptor, at dwarf2out.c:11616 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. -- Summary: ICE: mem_loc_descriptor, at dwarf2out.c:11616 Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: joel at gcc dot gnu dot org GCC target triplet: sparc-rtems4.10 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41411