[patch] fix build on architectures with a signed size_t

Andrew Haley aph at redhat.com
Mon Aug 4 04:43:21 PDT 2008

Andrew Haley wrote:
> Florian Weimer wrote:
>> * Andrew Haley:
>>> Florian Weimer wrote:
>>>> * Florian Weimer:
>>>>> * Matthias Klose:
>>>>>> attached are three patches to build on architectures with a signed size_t
>>>>>> (s390-linux-gnu).
>>>>> Yuck.  Is this really true?  Seems so.
>>>> No, it's not.
>>> It's not.
>> I was more concerned with the reality on s390, not what's in the
>> standard.  Unfortunately, my first test case was wrong.
> Is the reality then that GNU C on s/390 is not ISO C compliant?
> I didn't know that.  It must break a ton of code.

I don't believe it.  Here's s390/linux.h:

#undef  SIZE_TYPE
#define SIZE_TYPE (TARGET_64BIT ? "long unsigned int" : "long unsigned int")
#define PTRDIFF_TYPE (TARGET_64BIT ? "long int" : "int")


More information about the distro-pkg-dev mailing list