Re: __UINT_LEAST8_MAX__ and HP-UX 11.23/IA
Akim Demaille <[email protected]>
| Newsgroups | gmane.comp.parsers.bison.bugs |
|---|---|
| Message-ID | <[email protected]> |
Hi Paul, hi Albert, > Le 21 janv. 2021 à 03:52, Paul Eggert <[email protected]> a écrit : > > [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. Wow :( This is really bad... > I suppose Bison cannot assume that Gnulib is in use, unfortunately. :) > Does the attached Bison patch fix the problem for you? > <0001-c-port-to-HP-UX-11.23.patch> > Le 21 janv. 2021 à 19:09, Albert Chin <[email protected]> a écrit : > > Yes, it would fix it. We're currently doing something like the > attached. Ok, I will read this "Yes, it would fix it" as "Yes, it does fix it". I'll install the patch (if Paul didn't) and will release a bug fix asap. Does that sound good for you?