aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/src
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2009-01-07 23:49:29 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2009-01-07 23:49:29 +0100
commit1f93f6871ed8248e799690c7029cf1d5b12ff2f2 (patch)
treec51588bf25bcc97ad673fc18f899ae85d03c2a0f /libstdc++-v3/src
parent876080ffb70bdcb889f47aa334547cf25398e943 (diff)
downloadgcc-1f93f6871ed8248e799690c7029cf1d5b12ff2f2.zip
gcc-1f93f6871ed8248e799690c7029cf1d5b12ff2f2.tar.gz
gcc-1f93f6871ed8248e799690c7029cf1d5b12ff2f2.tar.bz2
re PR libstdc++/38092 (libstdc++ doesn't build with GNU ld 2.19 and Sun as: no .symver support)
PR libstdc++/38092 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New test. * src/compatibility.cc: Don't use .symver directives if _GLIBCXX_HAVE_AS_SYMVER_DIRECTIVE is not defined. * config.h.in: Regenerated. * configure: Likewise. From-SVN: r143169
Diffstat (limited to 'libstdc++-v3/src')
-rw-r--r--libstdc++-v3/src/compatibility.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/libstdc++-v3/src/compatibility.cc b/libstdc++-v3/src/compatibility.cc
index b29040c..06f6b9a 100644
--- a/libstdc++-v3/src/compatibility.cc
+++ b/libstdc++-v3/src/compatibility.cc
@@ -1,6 +1,6 @@
// Compatibility symbols for previous versions -*- C++ -*-
-// Copyright (C) 2005, 2006
+// Copyright (C) 2005, 2006, 2009
// Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
@@ -30,7 +30,8 @@
#include <bits/c++config.h>
-#if defined(_GLIBCXX_SYMVER_GNU) && defined(PIC)
+#if defined(_GLIBCXX_SYMVER_GNU) && defined(PIC) \
+ && defined(_GLIBCXX_HAVE_AS_SYMVER_DIRECTIVE)
#define istreambuf_iterator istreambuf_iteratorXX
#define basic_fstream basic_fstreamXX
#define basic_ifstream basic_ifstreamXX
@@ -204,7 +205,8 @@ _GLIBCXX_END_NAMESPACE
// NB: These symbols renames should go into the shared library only,
// and only those shared libraries that support versioning.
-#if defined(_GLIBCXX_SYMVER_GNU) && defined(PIC)
+#if defined(_GLIBCXX_SYMVER_GNU) && defined(PIC) \
+ && defined(_GLIBCXX_HAVE_AS_SYMVER_DIRECTIVE)
/* gcc-3.4.4
_ZNSt19istreambuf_iteratorIcSt11char_traitsIcEEppEv