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/0188-PR-c-48742.patch | |
parent | d42dccf886983ba14ccc868041d7bea0cf1a260e (diff) | |
download | 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/0188-PR-c-48742.patch')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0188-PR-c-48742.patch | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0188-PR-c-48742.patch b/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0188-PR-c-48742.patch new file mode 100644 index 0000000000..1b6ff4c6b0 --- /dev/null +++ b/meta/recipes-devtools/gcc/gcc-4.6.0/gcc-4_6-branch-backports/0188-PR-c-48742.patch | |||
@@ -0,0 +1,47 @@ | |||
1 | From 1a6d9e7052b3632a85ca6f79b48384fd684c4411 Mon Sep 17 00:00:00 2001 | ||
2 | From: jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | ||
3 | Date: Wed, 27 Apr 2011 07:05:54 +0000 | ||
4 | Subject: [PATCH 188/200] PR c/48742 | ||
5 | * c-typeck.c (build_binary_op): Don't wrap arguments if | ||
6 | int_operands is true. | ||
7 | |||
8 | * gcc.c-torture/compile/pr48742.c: New test. | ||
9 | |||
10 | |||
11 | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@173012 138bc75d-0d04-0410-961f-82ee72b054a4 | ||
12 | |||
13 | index fca369c..6ae9b4c 100644 | ||
14 | --- a/gcc/c-typeck.c | ||
15 | +++ b/gcc/c-typeck.c | ||
16 | @@ -10178,7 +10178,7 @@ build_binary_op (location_t location, enum tree_code code, | ||
17 | warn_for_sign_compare (location, orig_op0_folded, | ||
18 | orig_op1_folded, op0, op1, | ||
19 | result_type, resultcode); | ||
20 | - if (!in_late_binary_op) | ||
21 | + if (!in_late_binary_op && !int_operands) | ||
22 | { | ||
23 | if (!op0_maybe_const || TREE_CODE (op0) != INTEGER_CST) | ||
24 | op0 = c_wrap_maybe_const (op0, !op0_maybe_const); | ||
25 | new file mode 100644 | ||
26 | index 0000000..0a670f3 | ||
27 | --- /dev/null | ||
28 | +++ b/gcc/testsuite/gcc.c-torture/compile/pr48742.c | ||
29 | @@ -0,0 +1,15 @@ | ||
30 | +/* PR c/48742 */ | ||
31 | + | ||
32 | +void baz (int); | ||
33 | + | ||
34 | +int | ||
35 | +foo (void) | ||
36 | +{ | ||
37 | + return 1 / 0 > 0; | ||
38 | +} | ||
39 | + | ||
40 | +void | ||
41 | +bar (void) | ||
42 | +{ | ||
43 | + baz (1 <= 2 % (3 >> 1 > 5 / 6 == 3)); | ||
44 | +} | ||
45 | -- | ||
46 | 1.7.0.4 | ||
47 | |||