summaryrefslogtreecommitdiffstats
path: root/toolchain-layer/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99418.patch
diff options
context:
space:
mode:
Diffstat (limited to 'toolchain-layer/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99418.patch')
-rw-r--r--toolchain-layer/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99418.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/toolchain-layer/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99418.patch b/toolchain-layer/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99418.patch
new file mode 100644
index 0000000000..3ea7956f0f
--- /dev/null
+++ b/toolchain-layer/recipes-devtools/gcc/gcc-4.5/linaro/gcc-4.5-linaro-r99418.patch
@@ -0,0 +1,25 @@
12010-10-20 Yao Qi <yao@codesourcery.com>
2
3 Merge from Sourcery G++ to fix LP:660021
4 2010-10-18 Paul Brook <paul@codesourcery.com>
5
6 * tree-vect-stmts.c (supportable_widening_operation): Check if wide
7 vector type exists.
8
9=== modified file 'gcc/tree-vect-stmts.c'
10Index: gcc-4.5/gcc/tree-vect-stmts.c
11===================================================================
12--- gcc-4.5.orig/gcc/tree-vect-stmts.c
13+++ gcc-4.5/gcc/tree-vect-stmts.c
14@@ -4867,6 +4867,11 @@ supportable_widening_operation (enum tre
15 tree wide_vectype = get_vectype_for_scalar_type (type);
16 enum tree_code c1, c2;
17
18+ /* Check we have a valid vector type for the result. */
19+ if (!wide_vectype)
20+ return false;
21+
22+
23 /* The result of a vectorized widening operation usually requires two vectors
24 (because the widened results do not fit int one vector). The generated
25 vector results would normally be expected to be generated in the same