Re: [PATCH] Port to PGI 16.10 x86-64

2017-01-30 Thread Paul Eggert
Bruno Haible wrote: Just curious: Why the added parentheses? Because of some (broken) compiler, or just aesthetics? The latter; it's the usual style in the Emacs source code, and Emacs by default autoindents it that way.

Re: [PATCH] Port to PGI 16.10 x86-64

2017-01-30 Thread Bruno Haible
Hi Paul, > -# define ASYNCSAFE(type) *(volatile type *)& > +# define ASYNCSAFE(type) *(type volatile *)& Thanks, a good catch!! > +#if (defined __DECC || defined _MSC_VER \ > + || (defined __MVS__ && defined __IBMC__) \ > + || defined __PGI) Just curious: Why the added parentheses? Be

Re: M4 tests fail when built with PGI compilers

2017-01-30 Thread Paul Eggert
On 01/30/2017 02:39 PM, Eric Blake wrote: I don't think test-intprops.c is compatible with the PGI compilers. Yes, test-intprops.c runs afoul of a problem in the PGI compiler. I can reproduce the problem in PGI 16.10 x86-64 by compiling this one-line program: short bar = -32768 <= 1

[PATCH] Port to PGI 16.10 x86-64

2017-01-30 Thread Paul Eggert
This patch fixes one real bug in gl_anylinked_list2.h, along with some minor glitches that are not bugs. It does not silence PGI’s thousands of bogus warnings when compiling test-intprops.c. Fortunately, the warnings do not cause a failure. * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWE

Re: M4 tests fail when built with PGI compilers

2017-01-30 Thread Eric Blake
[adding gnulib] On 01/30/2017 03:48 PM, Stewart, Adam James wrote: > I'm trying to build and install M4 1.4.18 with PGI 16.5, but `make check` > crashes for me. I'm seeing thousands of lines that look like: > > PGC-W-0116-Constant value out of range for signed short or char > (/blues/gpfs/home/

Re: gnulib changes breaks Libtasn1 4.10 build with musl

2017-01-30 Thread Maxin B. John
Hi Bruno, On Mon, Jan 30, 2017 at 3:58 PM, Bruno Haible wrote: > Maxin B. John wrote: >> ./stdint.h:89:5: error: #if with no expression >> #if >> ... >> (Link: http://errors.yoctoproject.org/Errors/Details/123659/ ) >> >> This appears to be an error introduced by the gnulib commit: >> >> http://

Re: gnulib changes breaks Libtasn1 4.10 build with musl

2017-01-30 Thread Bruno Haible
Maxin B. John wrote: > ./stdint.h:89:5: error: #if with no expression > #if > ... > (Link: http://errors.yoctoproject.org/Errors/Details/123659/ ) > > This appears to be an error introduced by the gnulib commit: > > http://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=5a400b3f5a1f5483dbfd75d38

gnulib changes breaks Libtasn1 4.10 build with musl

2017-01-30 Thread Maxin B. John
Hi, While building Libtasn1 4.10 (which uses gnulib) with musl in Yocto project, we observed this build error: ... make[4]: *** [progname.lo] Error 1 make[4]: *** Waiting for unfinished jobs In file included from TOPDIR/tmp/work/i586-poky-linux-musl/libtasn1/4.10-r0/recipe-sysroot/usr/include/