This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/40790] New: plugin-api.h unconditionally includes stdint.h
- From: "ro at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Jul 2009 19:38:46 -0000
- Subject: [Bug lto/40790] New: plugin-api.h unconditionally includes stdint.h
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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