Adjust mangling of ABI tags on class template member functions.
authorJason Merrill <jason@redhat.com>
Tue, 9 Aug 2016 16:55:01 +0000 (12:55 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 9 Aug 2016 16:55:01 +0000 (12:55 -0400)
commit7ab8c6470c6275fd9e58038f1dd3e8744bebe2bc
tree6d10bd9ab296a60fd95c6b082467a0abef8aae07
parentf0bc3323eb5132b2d7e4c87ec2f213a18d72712d
Adjust mangling of ABI tags on class template member functions.

* class.c (missing_abi_tags): New.
(check_abi_tags): Don't check template. Add just_checking mode.
* mangle.c (abi_flag_at_least, any_abi_below, equal_abi_tags): New.
(sorted_abi_tags): Split out from write_abi_tags.
(struct releasing_vec): New.
(write_unqualified_name): Only look for the primary
template for types.  Implement backward compatibility.

From-SVN: r239298
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/cp-tree.h
gcc/cp/mangle.c
gcc/testsuite/g++.dg/abi/abi-tag21.C [new file with mode: 0644]
gcc/testsuite/g++.dg/abi/abi-tag21a.C [new file with mode: 0644]
gcc/testsuite/g++.dg/abi/abi-tag21b.C [new file with mode: 0644]