The stage1 compiler is built with -std=c++14 and _GLIBCXX_USE_LONG_LONG
is defined in config.h.  So, I believe we can remove define from hpux
os_defines.h.

Tested on hpppa64-hp-hpux11.11 with no regressions.

Dave
---

hpux: Remove _GLIBCXX_USE_LONG_LONG define from hpux os_defines.h

_GLIBCXX_USE_LONG_LONG is now defined by configure.

2025-04-05  John David Anglin  <dang...@gcc.gnu.org>

libstdc++-v3/ChangeLog:
        * config/os/hpux/os_defines.h: Remove _GLIBCXX_USE_LONG_LONG
        define.

diff --git a/libstdc++-v3/config/os/hpux/os_defines.h 
b/libstdc++-v3/config/os/hpux/os_defines.h
index d3a6c5ab142..acc1a022bde 100644
--- a/libstdc++-v3/config/os/hpux/os_defines.h
+++ b/libstdc++-v3/config/os/hpux/os_defines.h
@@ -52,10 +52,7 @@
 
    Also note that the compiler defines _INCLUDE_LONGLONG for C++
    unconditionally, which makes intmax_t and uintmax_t long long
-   types.
-
-   We also force _GLIBCXX_USE_LONG_LONG here so that we don't have
-   to bastardize configure to deal with this sillyness.  */
+   types.  */
 
 #if __cplusplus >= 201103L
 namespace std
@@ -77,8 +74,6 @@ namespace std
 } // namespace std
 #endif // __cplusplus
 
-#define _GLIBCXX_USE_LONG_LONG 1
-
 // HPUX on IA64 requires vtable to be 64 bit aligned even at 32 bit
 // mode.  We need to pad the vtable structure to achieve this.
 #if !defined(_LP64) && defined (__ia64__)

Attachment: signature.asc
Description: PGP signature

Reply via email to