diff options
author | Khem Raj <raj.khem@gmail.com> | 2011-04-30 12:37:47 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-05-05 12:26:41 +0100 |
commit | 478deec11f3349d61b1a922f047dc958dc07262a (patch) | |
tree | 1843907b36de2bcb8f821d49d8c9a88014ef0dc7 /meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0151-PR-c-46304.patch | |
parent | d42dccf886983ba14ccc868041d7bea0cf1a260e (diff) | |
download | ast2050-yocto-poky-478deec11f3349d61b1a922f047dc958dc07262a.zip ast2050-yocto-poky-478deec11f3349d61b1a922f047dc958dc07262a.tar.gz |
gcc-4.6.0: Backport FSF 4.6 branch patches
This is set of bugfixes that has been done on
FSF gcc-4_2-branch since 4.6.0 was released
They will roll into 4.6.1 release once that
happens in coming approx 6 months time then
we can simply remove them thats the reason
so use a separate .inc file to define the
SRC_URI additions
(From OE-Core rev: b0d5b9f12adbce2c4a0df6059f5671188cd32293)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0151-PR-c-46304.patch')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0151-PR-c-46304.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0151-PR-c-46304.patch b/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0151-PR-c-46304.patch new file mode 100644 index 0000000..3e87c05 --- /dev/null +++ b/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0151-PR-c-46304.patch @@ -0,0 +1,38 @@ +From 021acee3b7a6b26783c92870c1e202730c3f024e Mon Sep 17 00:00:00 2001 +From: jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> +Date: Wed, 20 Apr 2011 06:31:51 +0000 +Subject: [PATCH 151/200] PR c++/46304 + * typeck.c (cp_build_binary_op): Fold COMPLEX_EXPR. + +git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@172756 138bc75d-0d04-0410-961f-82ee72b054a4 + +index ec9233d..dec0680 100644 +--- a/gcc/cp/typeck.c ++++ b/gcc/cp/typeck.c +@@ -4354,7 +4354,11 @@ cp_build_binary_op (location_t location, + gcc_unreachable(); + } + } +- return build2 (COMPLEX_EXPR, result_type, real, imag); ++ real = fold_if_not_in_template (real); ++ imag = fold_if_not_in_template (imag); ++ result = build2 (COMPLEX_EXPR, result_type, real, imag); ++ result = fold_if_not_in_template (result); ++ return result; + } + + /* For certain operations (which identify themselves by shorten != 0) +new file mode 100644 +index 0000000..9d5463f +--- /dev/null ++++ b/gcc/testsuite/g++.dg/ext/complex7.C +@@ -0,0 +1,6 @@ ++// { dg-options "" } ++ ++class A ++{ ++ static const _Complex double x = 1.0 + 2.0i; ++}; +-- +1.7.0.4 + |