[patch] PR35915 sparc-solaris2.8 / hpux

Andreas Tobler andreast-list@fgznet.ch
Wed Apr 16 20:25:00 GMT 2008


Hi all,

the attached patch fixes compilation issues on sparc-solaris2.8. 
Awaiting confirmation for hpux.

No regressions seen under sparc-solaris2.8, i686-pc-linux-gnu, 
darwin-i686/x86_64 and ppc-linux (32-bit).

Ok for trunk?

Thanks.
Andreas


2008-04-16  Andreas Tobler  <a.tobler@schweiz.org>

         PR libstdc++/35915
         * configure.ac: Use GCC_HEADER_STDINT.
         * src/atomic.cc: Include gstdint.h
         * configure: Regenerate.
         * Makefile.in: Likewise.
         * doc/Makefile.in: Likewise.
         * include/Makefile.in: Likewise.
         * libmath/Makefile.in: Likewise.
         * libsupc++/Makefile.in: Likewise.
         * po/Makefile.in: Likewise.
         * src/Makefile.in: Likewise.
         * testsuite/Makefile.in: Likewise.
         * aclocal.m4: Likewise.

Index: configure.ac
===================================================================
--- configure.ac        (revision 134359)
+++ configure.ac        (working copy)
@@ -300,6 +300,8 @@

  GCC_LINUX_FUTEX([AC_DEFINE(HAVE_LINUX_FUTEX, 1, [Define if futex 
syscall is available.])])

+GCC_HEADER_STDINT(include/gstdint.h)
+
  # This depends on GLIBCXX CHECK_LINKER_FEATURES, but without it 
assumes no.
  GLIBCXX_ENABLE_SYMVERS([yes])
  GLIBCXX_ENABLE_VISIBILITY([yes])
Index: src/atomic.cc
===================================================================
--- src/atomic.cc       (revision 134359)
+++ src/atomic.cc       (working copy)
@@ -28,7 +28,7 @@
  // invalidate any other reasons why the executable file might be 
covered by
  // the GNU General Public License.

-#include <stdint.h>
+#include "gstdint.h"
  #include <cstdatomic>

  #define LOGSIZE 4



More information about the Libstdc++ mailing list