From 478deec11f3349d61b1a922f047dc958dc07262a Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sat, 30 Apr 2011 12:37:47 -0700 Subject: 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 Signed-off-by: Richard Purdie --- .../gcc-4_6-branch-backports/0045-PR-c-48369.patch | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0045-PR-c-48369.patch (limited to 'meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0045-PR-c-48369.patch') diff --git a/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0045-PR-c-48369.patch b/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0045-PR-c-48369.patch new file mode 100644 index 0000000000..2506d956ba --- /dev/null +++ b/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0045-PR-c-48369.patch @@ -0,0 +1,38 @@ +From 61759009408d9f43af89eaeaff769a656416e1af Mon Sep 17 00:00:00 2001 +From: jason +Date: Wed, 30 Mar 2011 19:50:17 +0000 +Subject: [PATCH 045/200] PR c++/48369 + * semantics.c (potential_constant_expression_1): Handle + UNORDERED_EXPR and ORDERED_EXPR. + +git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@171746 138bc75d-0d04-0410-961f-82ee72b054a4 + +index b88e190..48dd4ee 100644 +--- a/gcc/cp/semantics.c ++++ b/gcc/cp/semantics.c +@@ -7741,6 +7741,8 @@ potential_constant_expression_1 (tree t, bool want_rval, tsubst_flags_t flags) + case BIT_XOR_EXPR: + case BIT_AND_EXPR: + case TRUTH_XOR_EXPR: ++ case UNORDERED_EXPR: ++ case ORDERED_EXPR: + case UNLT_EXPR: + case UNLE_EXPR: + case UNGT_EXPR: +new file mode 100644 +index 0000000..40d07e5 +--- /dev/null ++++ b/gcc/testsuite/g++.dg/cpp0x/regress/isnan.C +@@ -0,0 +1,9 @@ ++// PR c++/48369 ++// { dg-options -std=gnu++0x } ++ ++extern "C" int isnan (double); ++ ++void f(double d) ++{ ++ bool b = isnan(d); ++} +-- +1.7.0.4 + -- cgit v1.2.3-54-g00ecf