From f42cf4f46b4d8776b4de4cad08203c26c11e6106 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Sat, 5 Mar 2011 19:45:16 -0500 Subject: [PATCH] * doc/invoke.texi (C++ Dialect Options): Document ABI v5. From-SVN: r170712 --- gcc/ChangeLog | 4 ++++ gcc/doc/invoke.texi | 4 ++++ gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/g++.dg/abi/mangle39.C | 2 +- gcc/testsuite/g++.dg/abi/mangle45.C | 2 +- gcc/testsuite/g++.dg/cpp0x/trailing1.C | 2 +- 6 files changed, 17 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0730e83c647..4a418465390 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2011-03-05 Jason Merrill + + * doc/invoke.texi (C++ Dialect Options): Document ABI v5. + 2011-03-05 Anthony Green * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile. diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index e642c39bf09..6c4d6339ba6 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -1846,6 +1846,10 @@ template argument. Version 4 implements a standard mangling for vector types. +Version 5 corrects the mangling of attribute const/volatile on +function pointer types, decltype of a plain decl, and use of a +function parameter in the declaration of another parameter. + See also @option{-Wabi}. @item -fno-access-control diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 40a58009c1b..7a5cc2cb5ab 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2011-03-05 Jason Merrill + + * g++.dg/abi/mangle39.C: ABI v5, not 6. + * g++.dg/abi/mangle45.C: Likewise. + * g++.dg/cpp0x/trailing1.C: Likewise. + 2011-03-05 John David Anglin * gcc.dg/torture/pr47975.c: Add -fno-common option on hppa*-*-hpux*. diff --git a/gcc/testsuite/g++.dg/abi/mangle39.C b/gcc/testsuite/g++.dg/abi/mangle39.C index 7b2ee01262d..28963561065 100644 --- a/gcc/testsuite/g++.dg/abi/mangle39.C +++ b/gcc/testsuite/g++.dg/abi/mangle39.C @@ -1,5 +1,5 @@ // PR c++/42338 -// { dg-options "-std=c++0x -fabi-version=6" } +// { dg-options "-std=c++0x -fabi-version=5" } // { dg-final { scan-assembler "_Z1fIPiEDTcmppfp_Li0EET_" } } // { dg-final { scan-assembler "_Z1gIiEvRK1AIT_EDTixfL0p_Li0EE" } } diff --git a/gcc/testsuite/g++.dg/abi/mangle45.C b/gcc/testsuite/g++.dg/abi/mangle45.C index a4df773fbe5..3ce9abcb0e7 100644 --- a/gcc/testsuite/g++.dg/abi/mangle45.C +++ b/gcc/testsuite/g++.dg/abi/mangle45.C @@ -1,5 +1,5 @@ // Testcase for mangling of parameters used other than in a trailing return type -// { dg-options "-std=c++0x -fabi-version=6" } +// { dg-options "-std=c++0x -fabi-version=5" } template void f(T p, decltype(p)) { } // L = 1 template void g(T p, decltype(p) (*)()) { } // L = 1 diff --git a/gcc/testsuite/g++.dg/cpp0x/trailing1.C b/gcc/testsuite/g++.dg/cpp0x/trailing1.C index b36d1aadb89..f637857b427 100644 --- a/gcc/testsuite/g++.dg/cpp0x/trailing1.C +++ b/gcc/testsuite/g++.dg/cpp0x/trailing1.C @@ -1,5 +1,5 @@ // Tests for late-specified return type. -// { dg-options "-std=c++0x -fabi-version=6" } +// { dg-options "-std=c++0x -fabi-version=5" } auto f() -> int { -- 2.30.2