This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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: Getting glibfortran to build on newlib targets aka. missing stdint.h (PR 14325)


On Mon, Nov 08, 2004 at 01:40:58PM -0700, Tom Tromey wrote:
> How about defining these types using gcc-specific mode attributes?
> This is what libgcj does for jni.h..  E.g.:
> 
>     typedef int GFC_INTEGER_4 __attribute__ ((__mode__ (__SI__)));
> 
> This is portable and has the advantage of not needing any configury.

It is *not* portable.  This is a 128-bit type on c4x.

Perhaps we should introduce __attribute__((__precision__(BITS))) to
solve this problem, but that's a different question.


r~


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