aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUros Bizjak <ubizjak@gmail.com>2017-09-25 16:59:19 +0200
committerUros Bizjak <uros@gcc.gnu.org>2017-09-25 16:59:19 +0200
commit75c44d224641800c6f5d4cad4487cea3524852a6 (patch)
tree6b57b2120b814fbadc13bb36da095c89f51f51ec
parentdf5cc22c7e45d5cf1d68f24ee6db99c052fe7de1 (diff)
downloadgcc-75c44d224641800c6f5d4cad4487cea3524852a6.zip
gcc-75c44d224641800c6f5d4cad4487cea3524852a6.tar.gz
gcc-75c44d224641800c6f5d4cad4487cea3524852a6.tar.bz2
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
-rw-r--r--libstdc++-v3/ChangeLog6
-rw-r--r--libstdc++-v3/src/c++98/complex_io.cc2
2 files changed, 7 insertions, 1 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index b2a8653..c04155f 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,9 @@
+2017-09-25 Uros Bizjak <ubizjak@gmail.com>
+
+ 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 <jwakely@redhat.com>
* 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 bb09ca5..f55e322 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);