Re: intprops.h xalloc-oversized.h: fix typos and port to gcc-7

2016-08-29 Thread Jim Meyering
On Mon, Aug 29, 2016 at 3:58 PM, Jim Meyering wrote: > On Mon, Aug 29, 2016 at 12:05 PM, Paul Eggert wrote: >> Jim Meyering wrote: >> >>> Good catch. >>> Thanks. >> >> >> In trying it out on GNU Emacs with GCC 6.2 I ran into another problem: it >> complains

Re: intprops.h xalloc-oversized.h: fix typos and port to gcc-7

2016-08-29 Thread Jim Meyering
On Mon, Aug 29, 2016 at 12:05 PM, Paul Eggert wrote: > Jim Meyering wrote: > >> Good catch. >> Thanks. > > > In trying it out on GNU Emacs with GCC 6.2 I ran into another problem: it > complains at compile-time if __builtin_add_overflow's 3rd arg is null. In > some GCC

fnmatch does not compile with c++ (clang)

2016-08-29 Thread Sam Steingold
Hi, fnmatch cannot be compiled using c++ on mac os x: --8<---cut here---start->8--- g++ -DHAVE_CONFIG_H -I. -I../../src/gllib -I.. -I../intl -I/usr/local/include -I/usr/local/opt/readline/include -W -Wswitch -Wcomment -Wpointer-arith -Wreturn-type

Re: intprops.h xalloc-oversized.h: fix typos and port to gcc-7

2016-08-29 Thread Paul Eggert
Jim Meyering wrote: Good catch. Thanks. In trying it out on GNU Emacs with GCC 6.2 I ran into another problem: it complains at compile-time if __builtin_add_overflow's 3rd arg is null. In some GCC versions this is supposed to discard the value, but I guess that capability is superseded by

Re: intprops.h xalloc-oversized.h: fix typos and port to gcc-7

2016-08-29 Thread Jim Meyering
On Mon, Aug 29, 2016 at 10:17 AM, Paul Eggert wrote: > Thanks for those fixes from the bleeding edge! One minor point: a strict > reading of the GCC 7 manual would say that calls to __builtin_add_overflow_p > etc. should use __typeof__ to avoid overflow in the very expression

Re: intprops.h xalloc-oversized.h: fix typos and port to gcc-7

2016-08-29 Thread Paul Eggert
Thanks for those fixes from the bleeding edge! One minor point: a strict reading of the GCC 7 manual would say that calls to __builtin_add_overflow_p etc. should use __typeof__ to avoid overflow in the very expression one is trying to check for overflow, so I installed the attached followup.

intprops.h xalloc-oversized.h: fix typos and port to gcc-7

2016-08-29 Thread Jim Meyering
From b9c364f02cb7a7485cd063fa2cbcbf82042fa8cc Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 29 Aug 2016 09:27:50 -0700 Subject: [PATCH 1/2] intprops.h: fix missing-backslash problems * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.