PR c++/69317 - [6 regression] wrong ABI version in -Wabi warnings
authorMartin Sebor <msebor@redhat.com>
Wed, 27 Jan 2016 15:44:07 +0000 (15:44 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Wed, 27 Jan 2016 15:44:07 +0000 (08:44 -0700)
commit60214d0d65c94912906108d2a1e6d04423528afc
treeb79e1c27ec85ef299e88b28597203fa04eda2af9
parent960cbfd21556b61a48a7dca672e71650eb3f8f87
PR c++/69317 - [6 regression] wrong ABI version in -Wabi warnings

gcc/cp/ChangeLog:
2016-01-27  Martin Sebor  <msebor@redhat.com>

PR c++/69317
* mangle.c (mangle_decl): Reference the correct (saved) version
of the ABI in -Wabi diagnostics.

gcc/testsuite/ChangeLog:
2016-01-27  Martin Sebor  <msebor@redhat.com>

PR c++/69317
* g++.dg/abi/Wabi-2-2.C: New test.
* g++.dg/abi/Wabi-2-3.C: New test.
* g++.dg/abi/Wabi-3-2.C: New test.
* g++.dg/abi/Wabi-3-3.C: New test.

From-SVN: r232881
gcc/cp/ChangeLog
gcc/cp/mangle.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/abi/Wabi-2-2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/abi/Wabi-2-3.C [new file with mode: 0644]
gcc/testsuite/g++.dg/abi/Wabi-3-2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/abi/Wabi-3-3.C [new file with mode: 0644]