diff options
author | Uros Bizjak <ubizjak@gmail.com> | 2017-09-25 16:59:19 +0200 |
---|---|---|
committer | Uros Bizjak <uros@gcc.gnu.org> | 2017-09-25 16:59:19 +0200 |
commit | 75c44d224641800c6f5d4cad4487cea3524852a6 (patch) | |
tree | 6b57b2120b814fbadc13bb36da095c89f51f51ec /libstdc++-v3/src/c++98 | |
parent | df5cc22c7e45d5cf1d68f24ee6db99c052fe7de1 (diff) | |
download | gcc-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
Diffstat (limited to 'libstdc++-v3/src/c++98')
-rw-r--r-- | libstdc++-v3/src/c++98/complex_io.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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); |