This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Detemining the size of int_fast8_t etc. in the frontend
- From: Paul Brook <paul at codesourcery dot com>
- To: gcc at gcc dot gnu dot org
- Cc: Tobias Burnus <burnus at net-b dot de>
- Date: Wed, 7 Mar 2007 20:22:14 +0000
- Subject: Re: Detemining the size of int_fast8_t etc. in the frontend
- References: <45EF10B8.8040608@net-b.de>
On Wednesday 07 March 2007 19:21, Tobias Burnus wrote:
> gfortran provides via ISO C Bindings access to the C types int, float
> etc. It also provides access to int_fast8_t, int_fast16_t, etc. of
> stdint.h.
>
> Using "#include <stdint.h>" with e.g. sizeof(int_fast8_t) does not work
> with cross compilations. (It actually fails already for -m32 on x86-64.)
> On the other hand, "struct gcc_target" does not seem to provide this
> information.
>
> What is the proper way to obtain this information?
I suspect the answer is that there currently isn't one.
gcc uses the stdint.h provided by the target C library. This may not be
available when building the compiler.
Paul