summaryrefslogtreecommitdiff
path: root/gcc/cp/method.c
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2010-03-03 19:01:36 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2010-03-03 19:01:36 +0000
commit20009fe33b0beceee26257744c81d4ab576702c4 (patch)
treeb0e6ce167e689e6afaff218c91b0bafd5549edbd /gcc/cp/method.c
parent8acfe9c66c81d2ac307f57a5a12f077d35079a1d (diff)
downloadgcc-20009fe33b0beceee26257744c81d4ab576702c4.tar.gz
PR c++/12909
* mangle.c: Include cgraph.h. (mangle_decl): If the mangled name will change in a later ABI version, make the later mangled name an alias. * method.c (make_alias_for): Copy DECL_ARGUMENTS. * Make-lang.in (mangle.o): Depend on cgraph.h. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157201 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/method.c')
-rw-r--r--gcc/cp/method.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cp/method.c b/gcc/cp/method.c
index ccc977d9df3..c25cedba178 100644
--- a/gcc/cp/method.c
+++ b/gcc/cp/method.c
@@ -234,6 +234,7 @@ make_alias_for (tree function, tree newid)
DECL_TEMPLATE_INSTANTIATED (alias) = 0;
DECL_TEMPLATE_INFO (alias) = NULL;
DECL_INITIAL (alias) = error_mark_node;
+ DECL_ARGUMENTS (alias) = copy_list (DECL_ARGUMENTS (target));
TREE_ADDRESSABLE (alias) = 1;
TREE_USED (alias) = 1;
SET_DECL_ASSEMBLER_NAME (alias, DECL_NAME (alias));