Fix PR77489 -- mangling of discriminator >= 1
authorMarkus Trippelsdorf <markus@trippelsdorf.de>
Wed, 18 Jan 2017 08:40:05 +0000 (08:40 +0000)
committerMarkus Trippelsdorf <trippels@gcc.gnu.org>
Wed, 18 Jan 2017 08:40:05 +0000 (08:40 +0000)
commitf6efea5163e7a321ecda80386ac23488e041ec2b
tree1b2783df9fcda5852973bca7fca843bd8a07e970
parent4701fba31cd2c7d5d6cd0af9a971ef802afc89e3
Fix PR77489 -- mangling of discriminator >= 1

libiberty:

PR c++/77489
* cp-demangle.c (d_discriminator): Handle discriminator >= 10.
* testsuite/demangle-expected: Add tests for discriminator.

gcc:
PR c++/77489
* doc/invoke.texi (fabi-version): Document discriminator mangling.

gcc/cp:

PR c++/77489
* mangle.c (write_discriminator): Handle discriminator >= 10.

From-SVN: r244566
gcc/ChangeLog
gcc/cp/ChangeLog
gcc/cp/mangle.c
gcc/doc/invoke.texi
gcc/testsuite/g++.dg/abi/pr77489.C [new file with mode: 0644]
libiberty/ChangeLog
libiberty/cp-demangle.c
libiberty/testsuite/demangle-expected