From ec9b6d061b8495b9316ae90e5a71a499ef2873ee Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sun, 12 Jun 2011 20:56:57 -0700 Subject: gcc-4.6.0: Bring in patches from FSF 4.6 branch This brings in new patches from 4.6 release branch updates the comment section of existing branch to not contain patch numbers. Tested build on qemu for arm ppc mips x86 and x86_64 (From OE-Core rev: 3968f33b6542cf20cf63cf49bfbc033bd2486295) Signed-off-by: Khem Raj Signed-off-by: Richard Purdie --- .../gcc-4_6-branch-backports/0359-PR-c-48284.patch | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0359-PR-c-48284.patch (limited to 'meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0359-PR-c-48284.patch') diff --git a/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0359-PR-c-48284.patch b/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0359-PR-c-48284.patch new file mode 100644 index 0000000000..2fd1843d51 --- /dev/null +++ b/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0359-PR-c-48284.patch @@ -0,0 +1,40 @@ +From a726d4116cb23c1f9873f3309c1c078d2113726d Mon Sep 17 00:00:00 2001 +From: jason +Date: Fri, 27 May 2011 20:48:17 +0000 +Subject: [PATCH] PR c++/48284 + * error.c (dump_expr) [COMPONENT_REF]: Use pp_cxx_dot + with INDIRECT_REF of REFERENCE_TYPE. + +git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@174362 138bc75d-0d04-0410-961f-82ee72b054a4 + +index dffc764..931e24d 100644 +--- a/gcc/cp/error.c ++++ b/gcc/cp/error.c +@@ -1879,7 +1879,10 @@ dump_expr (tree t, int flags) + && strcmp (IDENTIFIER_POINTER (DECL_NAME (ob)), "this"))) + { + dump_expr (ob, flags | TFF_EXPR_IN_PARENS); +- pp_cxx_arrow (cxx_pp); ++ if (TREE_CODE (TREE_TYPE (ob)) == REFERENCE_TYPE) ++ pp_cxx_dot (cxx_pp); ++ else ++ pp_cxx_arrow (cxx_pp); + } + } + else +new file mode 100644 +index 0000000..3515652 +--- /dev/null ++++ b/gcc/testsuite/g++.dg/cpp0x/error6.C +@@ -0,0 +1,8 @@ ++// PR c++/48284 ++// { dg-options -std=c++0x } ++ ++template ++auto g(C& c) -> decltype (c.f()) { return c.f(); } // { dg-error "decltype .c\\.f" } ++ ++template ++auto g(C& c) -> decltype (c.f()) { return c.f(); } // { dg-error "decltype .c\\.f" } +-- +1.7.0.4 + -- cgit v1.2.3-54-g00ecf