This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch]: Add check for stdint header
- From: Kai Tietz <ktietz70 at googlemail dot com>
- To: Tobias Burnus <burnus at net-b dot de>
- Cc: gcc patches <gcc-patches at gcc dot gnu dot org>, Paolo Bonzini <bonzini at gnu dot org>, Richard Guenther <rguenther at suse dot de>, Richard Henderson <rth at redhat dot com>, Ralf Wildenhues <Ralf dot Wildenhues at gmx dot de>
- Date: Fri, 4 Sep 2009 14:52:53 +0200
- Subject: Re: [patch]: Add check for stdint header
- References: <4AA10C84.9010309@net-b.de>
2009/9/4 Tobias Burnus <burnus@net-b.de>:
> Paolo Bonzini wrote:
>> You can use GCC_STDINT_TYPES (new in this version) instead of
>> GCC_HEADER_STDINT since GCC does not need int_leastNN_t and int_fastNN_t.
>
> That is not completely true. The Fortran front end needs to know the
> storage size of the int_{least,fast}*_t in order to make the
> c_int_{least,fast}*_t kind parameters available in the ISO_C_BINDING
> module (for interoperability with C). The size needs to match the one on
> the target system in order that C and Fortran can interoperate.
>
> I have not checked whether the change affects this (cf.
> gcc/fortran/iso-c-binding.def and users of this file), but one should
> check this before submittal.
>
> Tobias
>
Well, I bootstrapped this with Paolo's stdint.m4 patch, and it worked
on linux32 and linux64 (i386), and for x86_64-pc-mingw32, too.
Just out of curiosity, who is the size in gfortran frontend for
int_{least,fast}*_t done, as for gcc until now no stdint.h/inttypes.h
file was used?
Kai
--
| (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination