From 75c44d224641800c6f5d4cad4487cea3524852a6 Mon Sep 17 00:00:00 2001 From: Uros Bizjak Date: Mon, 25 Sep 2017 16:59:19 +0200 Subject: [PATCH] re PR c/81854 (weak alias of an incompatible symbol accepted) PR c/81854 * src/c++98/complex_io.cc (_GLIBCXX_LDBL_COMPAT): Declare alias target as a C++ function with no prototype. From-SVN: r253153 --- libstdc++-v3/ChangeLog | 6 ++++++ libstdc++-v3/src/c++98/complex_io.cc | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index b2a8653c8b7..c04155fadbc 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2017-09-25 Uros Bizjak + + PR c/81854 + * src/c++98/complex_io.cc (_GLIBCXX_LDBL_COMPAT): Declare alias + target as a C++ function with no prototype. + 2017-09-21 Jonathan Wakely * testsuite/25_algorithms/clamp/1.cc: Fix order of arguments and diff --git a/libstdc++-v3/src/c++98/complex_io.cc b/libstdc++-v3/src/c++98/complex_io.cc index bb09ca5e746..f55e322986e 100644 --- a/libstdc++-v3/src/c++98/complex_io.cc +++ b/libstdc++-v3/src/c++98/complex_io.cc @@ -95,7 +95,7 @@ _GLIBCXX_END_NAMESPACE_VERSION #ifdef _GLIBCXX_LONG_DOUBLE_COMPAT #define _GLIBCXX_LDBL_COMPAT(dbl, ldbl) \ - extern "C" void ldbl (void) __attribute__ ((alias (#dbl), weak)) + extern "C" void ldbl (...) __attribute__ ((alias (#dbl), weak)) _GLIBCXX_LDBL_COMPAT (_ZStlsIdcSt11char_traitsIcEERSt13basic_ostreamIT0_T1_ES6_RKSt7complexIT_E, _ZStlsIecSt11char_traitsIcEERSt13basic_ostreamIT0_T1_ES6_RKSt7complexIT_E); -- 2.30.2