bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WCHAR_WIDTH with HP-UX cc


From: Paul Eggert
Subject: Re: WCHAR_WIDTH with HP-UX cc
Date: Thu, 16 Mar 2017 01:10:37 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0

Bruno Haible wrote:
I would suggest to simplify _GL_INTEGER_WIDTH by assuming that its value
MUST be one of 8, 16, 32, 64, 128.

We could do that as a special case if __HP_cc is defined, as we know that particular compiler doesn't work with other-width integers. Does the attached (untested) patch work for you?

I'd rather keep the generic code with non-buggy compilers. You're right that much of Gnulib fails to work on unusual machines, but when it's easy to support the weird ones I'd rather do so, partly because compilers do exist for machines with non-powers-of-two widths, partly because it's more fun to be portable.

Attachment: 0001-limits-h-work-around-HP-UX-11.31-cc-bug.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]