This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
libstdc++-v3 hpux cleanup
- From: law at redhat dot com
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 03 Jan 2002 11:06:41 -0700
- Subject: libstdc++-v3 hpux cleanup
- Reply-to: law at redhat dot com
This fixes the unwanted warnings from using "long long" in os_defines.h
on hpux systems.
It's been bootstrapped on hpux11.00. When tested in a tree containing
John's collect2 patches I get no regressions and g++.dg.warn/format1.C
now passes.
* config/os/hpux/bits/os_defines.h: Prefix __strtoll and
__strtoull declarations with __extension__.
Index: os_defines.h
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/config/os/hpux/bits/os_defines.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -c -r1.7 -r1.8
*** os_defines.h 2001/12/29 19:18:32 1.7
--- os_defines.h 2002/01/03 18:03:15 1.8
***************
*** 60,68 ****
We also force _GLIBCPP_USE_LONG_LONG here so that we don't have
to bastardize configure to deal with this sillyness. */
namespace std {
! extern "C" long long strtoll (const char *, char **, int)
__asm ("__strtoll");
! extern "C" unsigned long long strtoull (const char *, char **, int)
__asm ("__strtoull");
}
#define _GLIBCPP_USE_LONG_LONG 1
--- 60,68 ----
We also force _GLIBCPP_USE_LONG_LONG here so that we don't have
to bastardize configure to deal with this sillyness. */
namespace std {
! __extension__ extern "C" long long strtoll (const char *, char **, int)
__asm ("__strtoll");
! __extension__ extern "C" unsigned long long strtoull (const char *, char **, int)
__asm ("__strtoull");
}
#define _GLIBCPP_USE_LONG_LONG 1