summaryrefslogtreecommitdiffstats
path: root/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99392.patch
diff options
context:
space:
mode:
authorKoen Kooi <koen@dominion.thruhere.net>2010-11-02 22:03:58 +0100
committerKoen Kooi <koen@dominion.thruhere.net>2010-11-02 22:12:02 +0100
commitbe10a6b1321f250b1034c7d9d0a8ef18b296eef1 (patch)
tree9249025cbfbfbee4cc430d62b27f75301dd4dfde /recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99392.patch
parent93b28937ac67ba46d65f55637e42552e224aa7e2 (diff)
downloadmeta-openembedded-be10a6b1321f250b1034c7d9d0a8ef18b296eef1.tar.gz
angstrom-layers: meta-openembedded: replace poky gcc 4.5 sources with OE ones
This needs further investigation, but for now we can get the tested sources into the poky gcc harness Signed-off-by: Koen Kooi <k-kooi@ti.com>
Diffstat (limited to 'recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99392.patch')
-rw-r--r--recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99392.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99392.patch b/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99392.patch
new file mode 100644
index 0000000000..9a9d5940c8
--- /dev/null
+++ b/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99392.patch
@@ -0,0 +1,33 @@
12010-09-10 Nathan Froyd <froydnj@codesourcery.com>
2
3 Issue #9120
4
5 * release-notes-csl.xml (Compiler optimization improvements): New
6 bullet.
7
8 gcc/
9 * gimple.c (is_gimple_min_invariant): Check for constant INDIRECT_REFs.
10
11 2010-09-08 Tom de Vries <tom@codesourcery.com>
12
13 gcc/
14
15=== modified file 'gcc/gimple.c'
16--- old/gcc/gimple.c 2010-06-22 17:23:11 +0000
17+++ new/gcc/gimple.c 2010-09-15 16:47:52 +0000
18@@ -2591,7 +2591,13 @@
19
20 op = strip_invariant_refs (TREE_OPERAND (t, 0));
21
22- return op && (CONSTANT_CLASS_P (op) || decl_address_invariant_p (op));
23+ if (!op)
24+ return false;
25+
26+ if (TREE_CODE (op) == INDIRECT_REF)
27+ return CONSTANT_CLASS_P (TREE_OPERAND (op, 0));
28+ else
29+ return CONSTANT_CLASS_P (op) || decl_address_invariant_p (op);
30 }
31
32 /* Return true if T is a gimple invariant address at IPA level
33