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


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.

-- 
Daniel Jacobowitz
CodeSourcery


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