This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [lto] PATCH: Add support for referencing types from function bodies
On Mon, 4 Sep 2006, Andreas Schwab 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.
--
Joseph S. Myers
joseph@codesourcery.com