[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: intprops.h xalloc-oversized.h: fix typos and port to gcc-7
From: |
Jim Meyering |
Subject: |
Re: intprops.h xalloc-oversized.h: fix typos and port to gcc-7 |
Date: |
Mon, 29 Aug 2016 15:58:02 -0700 |
On Mon, Aug 29, 2016 at 12:05 PM, Paul Eggert <address@hidden> 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 versions this is supposed to discard the value, but I guess that
> capability is superseded by __builtin_add_overflow_p. So I installed the
> attached additional patch, which avoids the need for a null argument so we
> don't have to worry about GCC version details there.
Thanks for making that work with 6.2
I noticed that you did not update the use in lib/xalloc-oversized.h,
and that too fails to compile with gcc-6.2.