Getting glibfortran to build on newlib targets aka. missing stdint.h (PR 14325)

Zack Weinberg zack@codesourcery.com
Tue Nov 9 08:15:00 GMT 2004


Richard Henderson <rth@redhat.com> writes:

> 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.

Or maybe we should change c4x to use SImode for its 32-bit type, and
not define QI/HImode operations.  (Yes, I know this has its own set of
problems.)

zw



More information about the Gcc mailing list