From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 88A013858405; Thu, 28 Apr 2022 13:21:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 88A013858405 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/105417] [11/12 Regression] powerpc64le-linux abilist changes based on --with-long-double-format= Date: Thu, 28 Apr 2022 13:21:34 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Apr 2022 13:21:34 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105417 --- Comment #3 from Jakub Jelinek --- >>From what I can see, the --with-long-double-format=3Dibm libstdc++.a has following _M_extract_int symbols (for simplicity only listing Ij symbols, I[lmtxy] are present/absent next to it: compatibility-ldbl-alt128.o: 0000000000000000 W _ZNKSt17__gnu_cxx_ieee1287num_getIcSt19istreambuf_iteratorIcSt11char_traits= IcEEE14_M_extract_intIjEES4_S4_S4_RSt8ios_baseRSt12_Ios_IostateRT_ 0000000000000000 W _ZNKSt17__gnu_cxx_ieee1287num_getIwSt19istreambuf_iteratorIwSt11char_traits= IwEEE14_M_extract_intIjEES4_S4_S4_RSt8ios_baseRSt12_Ios_IostateRT_ cxx11-locale-inst.o: 0000000000000000 W _ZNKSt17__gnu_cxx_ldbl1287num_getIcSt19istreambuf_iteratorIcSt11char_traits= IcEEE14_M_extract_intB5cxx11IjEES4_S4_S4_RSt8ios_baseRSt12_Ios_IostateRT_ cxx11-wlocale-inst.o: 0000000000000000 W _ZNKSt17__gnu_cxx_ldbl1287num_getIwSt19istreambuf_iteratorIwSt11char_traits= IwEEE14_M_extract_intB5cxx11IjEES4_S4_S4_RSt8ios_baseRSt12_Ios_IostateRT_ locale-inst.o: 0000000000000000 W _ZNKSt17__gnu_cxx_ldbl1287num_getIcSt19istreambuf_iteratorIcSt11char_traits= IcEEE14_M_extract_intIjEES4_S4_S4_RSt8ios_baseRSt12_Ios_IostateRT_ 0000000000000000 W _ZNKSt7num_getIcSt19istreambuf_iteratorIcSt11char_traitsIcEEE14_M_extract_i= ntIjEES3_S3_S3_RSt8ios_baseRSt12_Ios_IostateRT_ wlocale-inst.o: 0000000000000000 W _ZNKSt17__gnu_cxx_ldbl1287num_getIwSt19istreambuf_iteratorIwSt11char_traits= IwEEE14_M_extract_intIjEES4_S4_S4_RSt8ios_baseRSt12_Ios_IostateRT_ 0000000000000000 W _ZNKSt7num_getIwSt19istreambuf_iteratorIwSt11char_traitsIwEEE14_M_extract_i= ntIjEES3_S3_S3_RSt8ios_baseRSt12_Ios_IostateRT_ while --with-long-double-format=3Dieee libstdc++.a has: compatibility-ldbl-alt128.o: 0000000000000000 W _ZNKSt17__gnu_cxx_ldbl1287num_getIcSt19istreambuf_iteratorIcSt11char_traits= IcEEE14_M_extract_intIjEES4_S4_S4_RSt8ios_baseRSt12_Ios_IostateRT_ 0000000000000000 W _ZNKSt17__gnu_cxx_ldbl1287num_getIwSt19istreambuf_iteratorIwSt11char_traits= IwEEE14_M_extract_intIjEES4_S4_S4_RSt8ios_baseRSt12_Ios_IostateRT_ 0000000000000000 W _ZNKSt7num_getIcSt19istreambuf_iteratorIcSt11char_traitsIcEEE14_M_extract_i= ntIjEES3_S3_S3_RSt8ios_baseRSt12_Ios_IostateRT_ 0000000000000000 W _ZNKSt7num_getIwSt19istreambuf_iteratorIwSt11char_traitsIwEEE14_M_extract_i= ntIjEES3_S3_S3_RSt8ios_baseRSt12_Ios_IostateRT_ cxx11-locale-inst.o: 0000000000000000 W _ZNKSt17__gnu_cxx_ieee1287num_getIcSt19istreambuf_iteratorIcSt11char_traits= IcEEE14_M_extract_intB5cxx11IjEES4_S4_S4_RSt8ios_baseRSt12_Ios_IostateRT_ cxx11-wlocale-inst.o: 0000000000000000 W _ZNKSt17__gnu_cxx_ieee1287num_getIwSt19istreambuf_iteratorIwSt11char_traits= IwEEE14_M_extract_intB5cxx11IjEES4_S4_S4_RSt8ios_baseRSt12_Ios_IostateRT_ locale-inst.o: 0000000000000000 W _ZNKSt17__gnu_cxx_ieee1287num_getIcSt19istreambuf_iteratorIcSt11char_traits= IcEEE14_M_extract_intIjEES4_S4_S4_RSt8ios_baseRSt12_Ios_IostateRT_ wlocale-inst.o: 0000000000000000 W _ZNKSt17__gnu_cxx_ieee1287num_getIwSt19istreambuf_iteratorIwSt11char_traits= IwEEE14_M_extract_intIjEES4_S4_S4_RSt8ios_baseRSt12_Ios_IostateRT_ Now, the symbols in compatibility-ldbl-alt128.o and {,w}locale-inst.o match between the 2 builds, basically for each narrow and wide we export all of std::num_get, std::__gnu_cxx_ldbl128::num_get and std::__gnu_cxx_ieee128::num_get symbols. But the cxx11 ABI symbols are not. On x86_64, I see we have _ZNKSt7num_getIcSt19istreambuf_iteratorIcSt11char_traitsIcEEE14_M_extract_i= ntB5cxx11IjEES3_S3_S3_RSt8ios_baseRSt12_Ios_IostateRT_ in cxx11-locale-inst.o and _ZNKSt7num_getIwSt19istreambuf_iteratorIwSt11char_traitsIwEEE14_M_extract_i= ntB5cxx11IjEES3_S3_S3_RSt8ios_baseRSt12_Ios_IostateRT_ in cxx11-wlocale-inst.o, but we don't export those, similarly we don't expo= rt those _ZNKSt17__gnu_cxx_ldbl1287num_getIcSt19istreambuf_iteratorIcSt11char_traits= IcEEE14_M_extract_intB5cxx11IjEES4_S4_S4_RSt8ios_baseRSt12_Ios_IostateRT_ and _ZNKSt17__gnu_cxx_ldbl1287num_getIwSt19istreambuf_iteratorIwSt11char_traits= IwEEE14_M_extract_intB5cxx11IjEES4_S4_S4_RSt8ios_baseRSt12_Ios_IostateRT_ on targets which switched long double from double to something wider in the past (including powerpc64*), but we do export the __gnu_cxx_ieee128 ones, w= hich is why we get those extra symbols on --with-long-double-format=3Dieee builds. Are those cxx11 symbols never needed and so it was a mistake that they've b= een exported? Or is it an omission that they are not exported?=