This is the mail archive of the gcc@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: Detemining the size of int_fast8_t etc. in the frontend


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


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