summaryrefslogtreecommitdiff
path: root/libstdc++-v3
diff options
context:
space:
mode:
authormsebor <msebor@138bc75d-0d04-0410-961f-82ee72b054a4>2017-08-20 21:31:39 +0000
committermsebor <msebor@138bc75d-0d04-0410-961f-82ee72b054a4>2017-08-20 21:31:39 +0000
commit3be9fadb2d09fa3bc0e5eab6ebd843f3943bc3c6 (patch)
treec708a92be7ffdd41333cfef2165adef08b285f8b /libstdc++-v3
parent9b63942cea620caff8d2bf90c912582abaa8e13a (diff)
downloadgcc-3be9fadb2d09fa3bc0e5eab6ebd843f3943bc3c6.tar.gz
libstdc++/ChangeLog:
PR c/81854 * src/c++98/compatibility.cc (_GLIBCXX_3_4_SYMVER): Declare alias target as a C++ function with no prototype. (_GLIBCXX_3_4_5_SYMVER): Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@251211 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3')
-rw-r--r--libstdc++-v3/ChangeLog7
-rw-r--r--libstdc++-v3/src/c++98/compatibility.cc4
2 files changed, 9 insertions, 2 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 8d48bdfffcb..5dbd173dc28 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,10 @@
+2017-08-20 Martin Sebor <msebor@redhat.com>
+
+ PR c/81854
+ * src/c++98/compatibility.cc (_GLIBCXX_3_4_SYMVER): Declare alias
+ target as a C++ function with no prototype.
+ (_GLIBCXX_3_4_5_SYMVER): Ditto.
+
2017-08-20 John David Anglin <danglin@gcc.gnu.org>
PR testsuite/81056
diff --git a/libstdc++-v3/src/c++98/compatibility.cc b/libstdc++-v3/src/c++98/compatibility.cc
index 381f4c4b2e7..b49a5cad76e 100644
--- a/libstdc++-v3/src/c++98/compatibility.cc
+++ b/libstdc++-v3/src/c++98/compatibility.cc
@@ -367,13 +367,13 @@ _GLIBCXX_END_NAMESPACE_VERSION
#define _GLIBCXX_3_4_SYMVER(XXname, name) \
extern "C" void \
- _X##name() \
+ _X##name(...) \
__attribute__ ((alias(#XXname))); \
asm (".symver " "_X" #name "," #name "@GLIBCXX_3.4");
#define _GLIBCXX_3_4_5_SYMVER(XXname, name) \
extern "C" void \
- _Y##name() \
+ _Y##name(...) \
__attribute__ ((alias(#XXname))); \
asm (".symver " "_Y" #name "," #name "@@GLIBCXX_3.4.5");