summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0045-PR-c-48369.patch
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2011-04-30 12:37:47 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-05-05 12:26:41 +0100
commit478deec11f3349d61b1a922f047dc958dc07262a (patch)
tree1843907b36de2bcb8f821d49d8c9a88014ef0dc7 /meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0045-PR-c-48369.patch
parentd42dccf886983ba14ccc868041d7bea0cf1a260e (diff)
downloadpoky-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/0045-PR-c-48369.patch')
-rw-r--r--meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0045-PR-c-48369.patch38
1 files changed, 38 insertions, 0 deletions
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 @@
1From 61759009408d9f43af89eaeaff769a656416e1af Mon Sep 17 00:00:00 2001
2From: jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
3Date: Wed, 30 Mar 2011 19:50:17 +0000
4Subject: [PATCH 045/200] PR c++/48369
5 * semantics.c (potential_constant_expression_1): Handle
6 UNORDERED_EXPR and ORDERED_EXPR.
7
8git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@171746 138bc75d-0d04-0410-961f-82ee72b054a4
9
10index b88e190..48dd4ee 100644
11--- a/gcc/cp/semantics.c
12+++ b/gcc/cp/semantics.c
13@@ -7741,6 +7741,8 @@ potential_constant_expression_1 (tree t, bool want_rval, tsubst_flags_t flags)
14 case BIT_XOR_EXPR:
15 case BIT_AND_EXPR:
16 case TRUTH_XOR_EXPR:
17+ case UNORDERED_EXPR:
18+ case ORDERED_EXPR:
19 case UNLT_EXPR:
20 case UNLE_EXPR:
21 case UNGT_EXPR:
22new file mode 100644
23index 0000000..40d07e5
24--- /dev/null
25+++ b/gcc/testsuite/g++.dg/cpp0x/regress/isnan.C
26@@ -0,0 +1,9 @@
27+// PR c++/48369
28+// { dg-options -std=gnu++0x }
29+
30+extern "C" int isnan (double);
31+
32+void f(double d)
33+{
34+ bool b = isnan(d);
35+}
36--
371.7.0.4
38