I tried to build the lto branch as of 20090709 on IRIX 6.5 with GCC 3.4.5 as bootstrap compiler. The build fails like this:
% gcc -c -g -fkeep-inline-functions -DIN_GCC -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -Wold-style-definition -fno-common -DHAVE_CONFIG_H -I. -I. -I/vol/gcc/src/gcc-lto/gcc -I/vol/gcc/src/gcc-lto/gcc/. -I/vol/gcc/src/gcc-lto/gcc/../include -I/vol/gcc/src/gcc-lto/gcc/../libcpp/include -I/vol/gcc/include -I/vol/gcc/include -I/vol/gcc/src/gcc-lto/gcc/../libdecnumber -I/vol/gcc/src/gcc-lto/gcc/../libdecnumber/dpd -I../libdecnumber -I/vol/gcc/include -I/vol/gcc/include/libelf /vol/gcc/src/gcc-lto/gcc/lto-streamer-in.c -o lto-streamer-in.o In file included from /vol/gcc/src/gcc-lto/gcc/tree-flow.h:29, from /vol/gcc/src/gcc-lto/gcc/lto-streamer-in.c:36: /vol/gcc/src/gcc-lto/gcc/gimple.h: In function `gimple_op': /vol/gcc/src/gcc-lto/gcc/gimple.h:1578: warning: cast discards qualifiers from pointer target type /vol/gcc/src/gcc-lto/gcc/gimple.h: In function `gimple_op_ptr': /vol/gcc/src/gcc-lto/gcc/gimple.h:1592: warning: cast discards qualifiers from pointer target type In file included from /vol/gcc/src/gcc-lto/gcc/../include/plugin-api.h:29, from /vol/gcc/src/gcc-lto/gcc/lto-streamer.h:26, from /vol/gcc/src/gcc-lto/gcc/lto-streamer-in.c:49: /usr/include/stdint.h:5:2: #error This header file is to be used only for c99 mode compilations make: *** [lto-streamer-in.o] Error 1 While the native IRIX 6.5 stdint.h could be used with -std=c99 (or gnu99), this will fail completely on platforms that lack stdint.h completely. Using a sufficiently new gcc as bootstrap compiler that provides stdint.h itself would be a workaround, but gcc is supposed to be buildable with any C90 compiler. -- Summary: plugin-api.h unconditionally includes stdint.h Product: gcc Version: lto Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: ro at gcc dot gnu dot org GCC build triplet: mips-sgi-irix6.5 GCC host triplet: mips-sgi-irix6.5 GCC target triplet: mips-sgi-irix6.5 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40790