summaryrefslogtreecommitdiff
path: root/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0044-PR-c-48281.patch
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2011-06-17 17:11:43 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-06-23 11:49:04 +0100
commit68b545f4ff719f2b6e57d68b002dc9845c7a14ae (patch)
treef21182fa4d1394686b9afafbaac6d90bc3aa69a8 /meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0044-PR-c-48281.patch
parentb32666e29999c7c698b1a1378f96844fbc48358d (diff)
downloadopenembedded-core-68b545f4ff719f2b6e57d68b002dc9845c7a14ae.tar.gz
openembedded-core-68b545f4ff719f2b6e57d68b002dc9845c7a14ae.tar.bz2
openembedded-core-68b545f4ff719f2b6e57d68b002dc9845c7a14ae.tar.xz
openembedded-core-68b545f4ff719f2b6e57d68b002dc9845c7a14ae.zip
gcc-4.6: Switch to using svn SRC_URI for recipe
We call the recipes 4.6 Remove the backport patches Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0044-PR-c-48281.patch')
-rw-r--r--meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0044-PR-c-48281.patch70
1 files changed, 0 insertions, 70 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0044-PR-c-48281.patch b/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0044-PR-c-48281.patch
deleted file mode 100644
index 7f5f5aefd..000000000
--- a/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0044-PR-c-48281.patch
+++ /dev/null
@@ -1,70 +0,0 @@
-From 541566b2d3b46207159abb1f59970bb11078e57e Mon Sep 17 00:00:00 2001
-From: jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
-Date: Wed, 30 Mar 2011 18:05:43 +0000
-Subject: [PATCH] PR c++/48281
- * semantics.c (finish_compound_literal): Do put static/constant
- arrays in static variables.
-
-git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@171738 138bc75d-0d04-0410-961f-82ee72b054a4
-
-index 9926d26..b88e190 100644
---- a/gcc/cp/semantics.c
-+++ b/gcc/cp/semantics.c
-@@ -2329,7 +2329,34 @@ finish_compound_literal (tree type, tree compound_literal)
- if (TREE_CODE (type) == ARRAY_TYPE)
- cp_complete_array_type (&type, compound_literal, false);
- compound_literal = digest_init (type, compound_literal);
-- return get_target_expr (compound_literal);
-+ /* Put static/constant array temporaries in static variables, but always
-+ represent class temporaries with TARGET_EXPR so we elide copies. */
-+ if ((!at_function_scope_p () || CP_TYPE_CONST_P (type))
-+ && TREE_CODE (type) == ARRAY_TYPE
-+ && initializer_constant_valid_p (compound_literal, type))
-+ {
-+ tree decl = create_temporary_var (type);
-+ DECL_INITIAL (decl) = compound_literal;
-+ TREE_STATIC (decl) = 1;
-+ if (literal_type_p (type) && CP_TYPE_CONST_NON_VOLATILE_P (type))
-+ {
-+ /* 5.19 says that a constant expression can include an
-+ lvalue-rvalue conversion applied to "a glvalue of literal type
-+ that refers to a non-volatile temporary object initialized
-+ with a constant expression". Rather than try to communicate
-+ that this VAR_DECL is a temporary, just mark it constexpr. */
-+ DECL_DECLARED_CONSTEXPR_P (decl) = true;
-+ DECL_INITIALIZED_BY_CONSTANT_EXPRESSION_P (decl) = true;
-+ TREE_CONSTANT (decl) = true;
-+ }
-+ cp_apply_type_quals_to_decl (cp_type_quals (type), decl);
-+ decl = pushdecl_top_level (decl);
-+ DECL_NAME (decl) = make_anon_name ();
-+ SET_DECL_ASSEMBLER_NAME (decl, DECL_NAME (decl));
-+ return decl;
-+ }
-+ else
-+ return get_target_expr (compound_literal);
- }
-
- /* Return the declaration for the function-name variable indicated by
-new file mode 100644
-index 0000000..2b9f07d
---- /dev/null
-+++ b/gcc/testsuite/g++.dg/cpp0x/initlist46.C
-@@ -0,0 +1,14 @@
-+// PR c++/48281
-+// { dg-options "-std=c++0x -O2" }
-+// { dg-do run }
-+
-+#include <initializer_list>
-+
-+typedef std::initializer_list<int> int1;
-+typedef std::initializer_list<int1> int2;
-+static int2 ib = {{42,2,3,4,5},{2,3,4,5,1},{3,4,5,2,1}};
-+
-+int main()
-+{
-+ return *(ib.begin()->begin()) != 42;
-+}
---
-1.7.0.4
-