On Wed, 2 Apr 2025 at 20:15, John David Anglin <d...@parisc-linux.org> wrote:
>
> Committed to trunk.  Tested on hppa64-hp-hpux11.11.
>
> Dave
> ___
>
> hpux: Only use long long when __cplusplus >= 201103L
>
> Fixes some test failures.
>
> 2025-04-02  John David Anglin  <dang...@gcc.gnu.org>
>
> libstdc++-v3/ChangeLog:
>         * config/os/hpux/os_defines.h: Only use long long when
>         __cplusplus >= 201103L.

This isn't what the patch does though. It disables the declarations of
strtoll for C++98, but it leaves the unconditional:

#define _GLIBCXX_USE_LONG_LONG 1

Is that intentional?

>
> diff --git a/libstdc++-v3/config/os/hpux/os_defines.h 
> b/libstdc++-v3/config/os/hpux/os_defines.h
> index 30bd4c7ba14..d3a6c5ab142 100644
> --- a/libstdc++-v3/config/os/hpux/os_defines.h
> +++ b/libstdc++-v3/config/os/hpux/os_defines.h
> @@ -57,7 +57,7 @@
>     We also force _GLIBCXX_USE_LONG_LONG here so that we don't have
>     to bastardize configure to deal with this sillyness.  */
>
> -#ifdef __cplusplus
> +#if __cplusplus >= 201103L
>  namespace std
>  {
>    extern "C"

Reply via email to