aboutsummaryrefslogtreecommitdiff
path: root/gcc/common.opt
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2021-03-31 17:48:50 -0400
committerJason Merrill <jason@redhat.com>2021-04-01 10:04:38 -0400
commit5f00df5925082c7b66da91270f2ed29bf4818c93 (patch)
tree8a28c3c9d6bb27eefba0e44fb21407d17c0a0199 /gcc/common.opt
parent584731ecedf09c2c067913c4af9ed0a30cf19e8d (diff)
downloadgcc-5f00df5925082c7b66da91270f2ed29bf4818c93.zip
gcc-5f00df5925082c7b66da91270f2ed29bf4818c93.tar.gz
gcc-5f00df5925082c7b66da91270f2ed29bf4818c93.tar.bz2
c++: Add ABI version for PR98481 fix
The PR98481 fix corrects an ABI regression in GCC 10, but we don't want to introduce an ABI change in the middle of the GCC 10 cycle. This patch introduces ABI v15 for the fix, which will be available but not default in GCC 10.3; the broken behavior remains in ABI v14. Compatibility aliases will not be generated for this change. gcc/ChangeLog: PR c++/98481 * common.opt: Document v15 and v16. gcc/c-family/ChangeLog: PR c++/98481 * c-opts.c (c_common_post_options): Bump latest_abi_version. gcc/cp/ChangeLog: PR c++/98481 * mangle.c (write_expression): Adjust. * class.c (find_abi_tags_r): Disable PR98481 fix for ABI v14. (mark_abi_tags_r): Likewise. gcc/testsuite/ChangeLog: PR c++/98481 * g++.dg/abi/abi-tag24a.C: New test. * g++.dg/abi/macro0.C: Adjust expected value.
Diffstat (limited to 'gcc/common.opt')
-rw-r--r--gcc/common.opt6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/common.opt b/gcc/common.opt
index c75dd36..a75b44e 100644
--- a/gcc/common.opt
+++ b/gcc/common.opt
@@ -960,7 +960,11 @@ Driver Undocumented
; 14: Corrects the mangling of nullptr expression.
; Default in G++ 10.
;
-; 15: Changes the mangling of __alignof__ to be distinct from that of alignof.
+; 15: Corrects G++ 10 ABI tag regression [PR98481].
+; Available, but not default, in G++ 10.3.
+;
+; 16: Changes the mangling of __alignof__ to be distinct from that of alignof.
+; Adds missing 'on' in mangling of operator names in some cases.
; Default in G++ 11.
;
; Additional positive integers will be assigned as new versions of