Trying to build the lto branch as of 20090709 on Solaris (both SPARC and x86) fails compiling lto-elf.c:
cc1: warnings being treated as errors In file included from /vol/gcc/src/gcc-lto/gcc/lto/lto-elf.c:21:0: /vol/gcc/include/libelf/gelf.h:102:1: error: function declaration isn't a prototype This happens because for some reason __STDC__ isn't defined at all (as revealed by rebuilding with -g3 -save-temps), so libelf/libelf.h defines __P() as empty. I've hacked around this by adding || defined(__sun) to the first __P definition in libelf/gelf.h and libelf/libelf.h, but this needs to be properly investigated. -- Summary: lto-elf.c fails to compile on Solaris Product: gcc Version: lto Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: ro at gcc dot gnu dot org GCC build triplet: sparc-sun-solaris2.11 GCC host triplet: sparc-sun-solaris2.11 GCC target triplet: sparc-sun-solaris2.11 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40702