On Thu, Oct 29, 2026 at 07:41:09AM -0400, Kael Andrew Alonzo Franco wrote:
> hppa64-hp-hpux11.11 needs HAVE_LONG_LONG for libiberty.h
> to declare strto{u,}ll functions.
> 
> John David Anglin approved this fix hppa64 bootstrap on PR.
> 
> Bootstrapped and regtested on x86_64-pc-linux-gnu.
> 
>       PR bootstrap/112422
>       PR bootstrap/128228
> 
> gcc/ChangeLog:
> 
>       * configure.ac (HAVE_LONG_LONG): Add it back.
>       * config.in: Regenerate.
>       * configure: Regenerate.

Wouldn't it be better to change libiberty.h?
Change those
#if defined(HAVE_LONG_LONG) && defined(HAVE_DECL_STRTOLL) && !HAVE_DECL_STRTOLL
etc. lines to
#if (defined(HAVE_LONG_LONG) || __cplusplus >= 201103L) \
    && defined(HAVE_DECL_STRTOLL) && !HAVE_DECL_STRTOLL
because C++11 and later always has long long?

        Jakub

Reply via email to