This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [lto] PATCH: Add support for referencing types from function bodies


Daniel Jacobowitz wrote:
On Mon, Sep 04, 2006 at 12:01:13PM +0000, Joseph S. Myers wrote:
Andrew Pinski <pinskia@physics.uc.edu> writes:

On Sun, 2006-09-03 at 21:55 -0700, Mark Mitchell wrote:
+#include <inttypes.h>
Semi offtopic but isn't it better to include stdtypes.h unless you need
ITYM stdint.h.
The practical portability matter is that inttypes.h is more widespread than stdint.h because of systems that implemented early C9X drafts with inttypes.h but not stdint.h. In any case, the include should go in system.h, which probably does need to use the autoconf support for generating such a header if not present.

In principle GCC should provide <stdint.h>, bug 448, but that only solves the problem for the target and not for the host.

And for the host, Andrew is correct: GCC_HEADER_STDINT(gstdint.h) in configure.ac will generate a usable stdint.h replacement.

Thanks. I'm sure that there will be a round of host-portability changes required in the LTO front end -- but right now, I'm more concerned about making it do something useful on any host. :-)


--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]