On Fri, Oct 30, 2026 at 09:16:31AM -0400, Kael Andrew Alonzo Franco wrote:
> --- a/include/libiberty.h
> +++ b/include/libiberty.h
> @@ -728,16 +728,25 @@ extern unsigned long int strtoul (const char *nptr,
> char **endptr, int base);
> #endif
>
> -#if defined(HAVE_LONG_LONG) && defined(HAVE_DECL_STRTOLL) &&
> !HAVE_DECL_STRTOLL
> +/* hppa64-hp-hpux11.11 GCC bootstrap pass with this and
> + declare strto{u,}ll if at least C++11. */
> +#if __STDC_VERSION__ >= 199901L
> +# undef HAVE_LONG_LONG
> +# define HAVE_LONG_LONG 1
> +#endif
Please drop this hunk.
> +
> +#if (defined(HAVE_LONG_LONG) || (defined(__cplusplus) && __cplusplus >=
> 201103L))
If you want to handle C99 too even without the HAVE_LONG_LONG macro being
defined, just do
#if (defined(HAVE_LONG_LONG) \
|| __STDC_VERSION__ >= 199901L \
|| __cplusplus >= 201103L)
I don't think you need to use defined(__cplusplus) &&, like you don't use
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
earlier.
Jakub