diff options
author | Khem Raj <raj.khem@gmail.com> | 2010-09-24 13:49:18 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2010-09-25 10:34:26 -0700 |
commit | b42902fe8ab2160cb9b01c468a7670fd88ce9238 (patch) | |
tree | a045e259cee737de031d6750905c2b5272038c37 /recipes/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99392.patch | |
parent | 190f46585ff733088ddf3bd23e60855c92cab116 (diff) | |
download | openembedded-b42902fe8ab2160cb9b01c468a7670fd88ce9238.tar.gz |
gcc-4.5: Import Linaro patches
* Tested gcc on efikamx.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'recipes/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99392.patch')
-rw-r--r-- | recipes/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99392.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/recipes/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99392.patch b/recipes/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99392.patch new file mode 100644 index 0000000000..9a9d5940c8 --- /dev/null +++ b/recipes/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99392.patch @@ -0,0 +1,33 @@ +2010-09-10 Nathan Froyd <froydnj@codesourcery.com> + + Issue #9120 + + * release-notes-csl.xml (Compiler optimization improvements): New + bullet. + + gcc/ + * gimple.c (is_gimple_min_invariant): Check for constant INDIRECT_REFs. + + 2010-09-08 Tom de Vries <tom@codesourcery.com> + + gcc/ + +=== modified file 'gcc/gimple.c' +--- old/gcc/gimple.c 2010-06-22 17:23:11 +0000 ++++ new/gcc/gimple.c 2010-09-15 16:47:52 +0000 +@@ -2591,7 +2591,13 @@ + + op = strip_invariant_refs (TREE_OPERAND (t, 0)); + +- return op && (CONSTANT_CLASS_P (op) || decl_address_invariant_p (op)); ++ if (!op) ++ return false; ++ ++ if (TREE_CODE (op) == INDIRECT_REF) ++ return CONSTANT_CLASS_P (TREE_OPERAND (op, 0)); ++ else ++ return CONSTANT_CLASS_P (op) || decl_address_invariant_p (op); + } + + /* Return true if T is a gimple invariant address at IPA level + |