* Re: Template instantiation results in a link failure
[not found] ` <4DDD8B02.4000005@oracle.com>
@ 2011-05-26 0:38 ` Paolo Carlini
2011-05-26 2:21 ` Paolo Carlini
0 siblings, 1 reply; 2+ messages in thread
From: Paolo Carlini @ 2011-05-26 0:38 UTC (permalink / raw)
To: Sam Varshavchik; +Cc: libstdc++, gcc-patches
[-- Attachment #1: Type: text/plain, Size: 596 bytes --]
On 05/26/2011 01:04 AM, Paolo Carlini wrote:
> On 05/26/2011 12:57 AM, Sam Varshavchik wrote:
>> #include <algorithm>
>> #include <iterator>
>> #include <iostream>
>>
>> int main()
>> {
>> std::find(std::istreambuf_iterator<char>(std::cin),
>> std::istreambuf_iterator<char>(), '\n');
>> return 0;
>> }
> The symbols are in the .so but unexported. Likely my fault, sorry.
> I'll fix that momentarily for 4.6.1.
Like this. Tested x86_64-linux -m32 and -m64.
Thanks,
Paolo.
PS: of course the problem was visible only at -O0, when no inlining
takes place.
///////////////////
[-- Attachment #2: CL --]
[-- Type: text/plain, Size: 256 bytes --]
2011-05-25 Paolo Carlini <paolo.carlini@oracle.com>
* config/abi/pre/gnu.ver: Export recently added basic_streambuf
and basic_stringbuf symbols @3.4.17.
* configure.ac: Update.
* testsuite/util/testsuite_abi.cc: Likewise.
* configure: Regenerate.
[-- Attachment #3: patch --]
[-- Type: text/plain, Size: 1684 bytes --]
Index: configure.ac
===================================================================
--- configure.ac (revision 174239)
+++ configure.ac (working copy)
@@ -12,7 +12,7 @@
### am handles this now? ORIGINAL_LD_FOR_MULTILIBS=$LD
# For libtool versioning info, format is CURRENT:REVISION:AGE
-libtool_VERSION=6:16:0
+libtool_VERSION=6:17:0
AC_SUBST(libtool_VERSION)
# Find the rest of the source tree framework.
Index: testsuite/util/testsuite_abi.cc
===================================================================
--- testsuite/util/testsuite_abi.cc (revision 174239)
+++ testsuite/util/testsuite_abi.cc (working copy)
@@ -194,6 +194,7 @@
known_versions.push_back("GLIBCXX_3.4.14");
known_versions.push_back("GLIBCXX_3.4.15");
known_versions.push_back("GLIBCXX_3.4.16");
+ known_versions.push_back("GLIBCXX_3.4.17");
known_versions.push_back("GLIBCXX_LDBL_3.4");
known_versions.push_back("GLIBCXX_LDBL_3.4.7");
known_versions.push_back("GLIBCXX_LDBL_3.4.10");
Index: config/abi/pre/gnu.ver
===================================================================
--- config/abi/pre/gnu.ver (revision 174239)
+++ config/abi/pre/gnu.ver (working copy)
@@ -1272,6 +1272,17 @@
} GLIBCXX_3.4.15;
+GLIBCXX_3.4.17 {
+
+ # basic_streambuf<>::__safe_gbump, __safe_pbump
+ _ZNSt15basic_streambufI[cw]St11char_traitsI[cw]EE12__safe_gbumpE*;
+ _ZNSt15basic_streambufI[cw]St11char_traitsI[cw]EE12__safe_pbumpE*;
+
+ # basic_stringbuf<>::_M_pbump
+ _ZNSt15basic_stringbufI[cw]St11char_traitsI[cw]ESaI[cw]EE8_M_pbumpE*;
+
+} GLIBCXX_3.4.16;
+
# Symbols in the support library (libsupc++) have their own tag.
CXXABI_1.3 {
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Template instantiation results in a link failure
2011-05-26 0:38 ` Template instantiation results in a link failure Paolo Carlini
@ 2011-05-26 2:21 ` Paolo Carlini
0 siblings, 0 replies; 2+ messages in thread
From: Paolo Carlini @ 2011-05-26 2:21 UTC (permalink / raw)
To: Sam Varshavchik; +Cc: libstdc++, gcc-patches
[-- Attachment #1: Type: text/plain, Size: 145 bytes --]
... oops, no need to open a new minor version, we already bumped post 4.6.0.
Committed mainline and 4_6-branch.
Paolo.
//////////////////////
[-- Attachment #2: CL2 --]
[-- Type: text/plain, Size: 253 bytes --]
2011-05-25 Paolo Carlini <paolo.carlini@oracle.com>
* config/abi/pre/gnu.ver: Correct last change, export instead
at the existing @3.4.16.
* configure.ac: Revert last change.
* testsuite/util/testsuite_abi.cc: Likewise.
* configure: Regenerate.
[-- Attachment #3: patch2 --]
[-- Type: text/plain, Size: 1817 bytes --]
Index: configure.ac
===================================================================
--- configure.ac (revision 174242)
+++ configure.ac (working copy)
@@ -12,7 +12,7 @@
### am handles this now? ORIGINAL_LD_FOR_MULTILIBS=$LD
# For libtool versioning info, format is CURRENT:REVISION:AGE
-libtool_VERSION=6:17:0
+libtool_VERSION=6:16:0
AC_SUBST(libtool_VERSION)
# Find the rest of the source tree framework.
Index: testsuite/util/testsuite_abi.cc
===================================================================
--- testsuite/util/testsuite_abi.cc (revision 174242)
+++ testsuite/util/testsuite_abi.cc (working copy)
@@ -194,7 +194,6 @@
known_versions.push_back("GLIBCXX_3.4.14");
known_versions.push_back("GLIBCXX_3.4.15");
known_versions.push_back("GLIBCXX_3.4.16");
- known_versions.push_back("GLIBCXX_3.4.17");
known_versions.push_back("GLIBCXX_LDBL_3.4");
known_versions.push_back("GLIBCXX_LDBL_3.4.7");
known_versions.push_back("GLIBCXX_LDBL_3.4.10");
Index: config/abi/pre/gnu.ver
===================================================================
--- config/abi/pre/gnu.ver (revision 174242)
+++ config/abi/pre/gnu.ver (working copy)
@@ -1270,10 +1270,6 @@
_ZNSs10_S_compareE[jmy][jmy];
_ZNSbIwSt11char_traitsIwESaIwEE10_S_compareE[jmy][jmy];
-} GLIBCXX_3.4.15;
-
-GLIBCXX_3.4.17 {
-
# basic_streambuf<>::__safe_gbump, __safe_pbump
_ZNSt15basic_streambufI[cw]St11char_traitsI[cw]EE12__safe_gbumpE*;
_ZNSt15basic_streambufI[cw]St11char_traitsI[cw]EE12__safe_pbumpE*;
@@ -1281,7 +1277,7 @@
# basic_stringbuf<>::_M_pbump
_ZNSt15basic_stringbufI[cw]St11char_traitsI[cw]ESaI[cw]EE8_M_pbumpE*;
-} GLIBCXX_3.4.16;
+} GLIBCXX_3.4.15;
# Symbols in the support library (libsupc++) have their own tag.
CXXABI_1.3 {
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-05-26 0:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <cone.1306364236.205222.8217.500@monster.email-scan.com>
[not found] ` <4DDD8B02.4000005@oracle.com>
2011-05-26 0:38 ` Template instantiation results in a link failure Paolo Carlini
2011-05-26 2:21 ` Paolo Carlini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).