This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/40790] plugin-api.h unconditionally includes stdint.h
- From: "espindola at google dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Oct 2009 18:20:09 -0000
- Subject: [Bug lto/40790] plugin-api.h unconditionally includes stdint.h
- References: <bug-40790-279@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #9 from espindola at google dot com 2009-10-08 18:20 -------
(In reply to comment #8)
> Raphael, can you look into this?
>
Sure. Sorry about the delay.
The only thing the compiler should need the plugin-api.h for is the enum
ld_plugin_symbol_resolution. If we split plugin-api.h in two, we would be able
to compile gcc itself without stdint.h.
The problem with this approach is that the lto plugin would still fail to build
in a system without stdint.h. Is it OK to have optional features like the gold
plugin not supported in systems like "Tru64 UNIX V4.0F"?
Yet another possibility would be to change the build system so that we always
build the lto plugin with xgcc (in addition to the plugin-api.h split). No idea
how hard this is.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40790