[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: __UINT_LEAST8_MAX__ and HP-UX 11.23/IA
From: |
Albert Chin |
Subject: |
Re: __UINT_LEAST8_MAX__ and HP-UX 11.23/IA |
Date: |
Thu, 21 Jan 2021 12:09:47 -0600 |
User-agent: |
NeoMutt/20171215 |
On Wed, Jan 20, 2021 at 06:52:37PM -0800, Paul Eggert wrote:
> [Resending as the first message had the incorrect "bus-bison" as the return
> address.]
>
> On 1/20/21 3:50 PM, Albert Chin wrote:
>
> > > Unfortunately, on HP-UX 11.23/IA, UINT_LEAST8_MAX evaluates to
> > > ((unsigned char)(255)) causing a problem with:
> > > #elif (!defined __UINT_LEAST8_MAX__ && defined YY_STDINT_H \
> > > && UINT_LEAST8_MAX <= INT_MAX)
> >
> > This is also an issue for UINT_LEAST16_MAX.
> That is a known bug in HP-UX 11.23 that Gnulib has had a workaround for
> since 2009. See:
>
> https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=3a4f1890986aeea9906c261c146bfaab4136a263
>
> I suppose Bison cannot assume that Gnulib is in use, unfortunately.
>
> Does the attached Bison patch fix the problem for you?
Yes, it would fix it. We're currently doing something like the
attached.
--
albert chin (china@thewrittenword.com)
hpux.patch
Description: Text Data
Re: __UINT_LEAST8_MAX__ and HP-UX 11.23/IA, Paul Eggert, 2021/01/20