I tried to build SpiderMonkey 1.60 (http://www.mozilla.org/js/spidermonkey/) on SunOS 5.9/SPARC, and I got this ICE. That code compiles successfully using GCC 4.1.1 bundled with Linux Fedora Core 6 (x86, 32-bit).
gcc -o SunOS5.9_DBG.OBJ/jscpucfg.o -c -g -DXP_UNIX -DSVR4 -DSYSV -DSOLARIS -DHAVE_LOCALTIME_R -DDEBUG -DDEBUG_daniel -DEDITLINE -ISunOS5.9_DBG.OBJ jscpucfg.c jscpucfg.c:374: internal compiler error: in dwarf2out_finish, at dwarf2out.c:14117 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. # gcc --ver Using built-in specs. Target: sparc-sun-solaris2.9 Configured with: ../gcc-4.1.1/configure --prefix=/tools/gcc-4.1.1 --with-gnu-as --with-gnu-ld --with-as=/tools/gnu/bin/as --with-ld=/tools/gnu/bin/ld --with-gmp=/tools/gnu --with-mpfr=/tools/gnu Thread model: posix gcc version 4.1.1 # gcc --version gcc (GCC) 4.1.1 Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -- Summary: ICE while building SpiderMonkey 1.60 Product: gcc Version: 4.1.1 Status: UNCONFIRMED Severity: major Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: bugzilla at poradnik-webmastera dot com GCC build triplet: sparc-sun-solaris2.9 GCC host triplet: sparc-sun-solaris2.9 GCC target triplet: sparc-sun-solaris2.9 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31065