diff options
author | Khem Raj <raj.khem@gmail.com> | 2012-06-28 12:19:53 -0700 |
---|---|---|
committer | Koen Kooi <koen@dominion.thruhere.net> | 2012-07-09 18:40:21 +0200 |
commit | 6b278fbb02d818b54b5a9fa2716fc49e896b72a8 (patch) | |
tree | 833783fb738ff7abf3d0e3029c9a468e73b06e28 /toolchain-layer/recipes-devtools/gcc/gcc-4.6/linaro/gcc-4.6-linaro-r106861.patch | |
parent | 680af24d1ff95533db610176e6b01fcc9dcf6699 (diff) | |
download | meta-openembedded-6b278fbb02d818b54b5a9fa2716fc49e896b72a8.tar.gz |
gcc-4.6: Migrate recipes from OE-Core
Remove linaro patches. If one needs to use linaro
modified gcc they should use meta-linaro
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'toolchain-layer/recipes-devtools/gcc/gcc-4.6/linaro/gcc-4.6-linaro-r106861.patch')
-rw-r--r-- | toolchain-layer/recipes-devtools/gcc/gcc-4.6/linaro/gcc-4.6-linaro-r106861.patch | 76 |
1 files changed, 0 insertions, 76 deletions
diff --git a/toolchain-layer/recipes-devtools/gcc/gcc-4.6/linaro/gcc-4.6-linaro-r106861.patch b/toolchain-layer/recipes-devtools/gcc/gcc-4.6/linaro/gcc-4.6-linaro-r106861.patch deleted file mode 100644 index 0199f7b89..000000000 --- a/toolchain-layer/recipes-devtools/gcc/gcc-4.6/linaro/gcc-4.6-linaro-r106861.patch +++ /dev/null | |||
@@ -1,76 +0,0 @@ | |||
1 | 2012-01-18 Michael Hope <michael.hope@linaro.org> | ||
2 | |||
3 | Backport from mainline r183126: | ||
4 | |||
5 | 2012-01-12 Ira Rosen <irar@il.ibm.com> | ||
6 | |||
7 | gcc/ | ||
8 | PR tree-optimization/51799 | ||
9 | * tree-vect-patterns.c (vect_recog_over_widening_pattern): Check | ||
10 | that the last operation is a type demotion. | ||
11 | |||
12 | gcc/testsuite/ | ||
13 | * gcc.dg/vect/pr51799.c: New test. | ||
14 | * gcc.dg/vect/vect-widen-shift-u8.c: Expect two widening shift | ||
15 | patterns. | ||
16 | |||
17 | === added file 'gcc/testsuite/gcc.dg/vect/pr51799.c' | ||
18 | --- old/gcc/testsuite/gcc.dg/vect/pr51799.c 1970-01-01 00:00:00 +0000 | ||
19 | +++ new/gcc/testsuite/gcc.dg/vect/pr51799.c 2012-01-18 01:53:19 +0000 | ||
20 | @@ -0,0 +1,18 @@ | ||
21 | +/* { dg-do compile } */ | ||
22 | + | ||
23 | +typedef signed char int8_t; | ||
24 | +typedef unsigned char uint8_t; | ||
25 | +typedef signed short int16_t; | ||
26 | +typedef unsigned long uint32_t; | ||
27 | +void | ||
28 | +f0a (uint32_t * __restrict__ result, int8_t * __restrict__ arg1, | ||
29 | + uint32_t * __restrict__ arg4, int8_t temp_6) | ||
30 | +{ | ||
31 | + int idx; | ||
32 | + for (idx = 0; idx < 416; idx += 1) | ||
33 | + { | ||
34 | + result[idx] = (uint8_t)(((arg1[idx] << 7) + arg4[idx]) * temp_6); | ||
35 | + } | ||
36 | +} | ||
37 | + | ||
38 | +/* { dg-final { cleanup-tree-dump "vect" } } */ | ||
39 | |||
40 | === modified file 'gcc/testsuite/gcc.dg/vect/vect-widen-shift-u8.c' | ||
41 | --- old/gcc/testsuite/gcc.dg/vect/vect-widen-shift-u8.c 2011-10-23 13:33:07 +0000 | ||
42 | +++ new/gcc/testsuite/gcc.dg/vect/vect-widen-shift-u8.c 2012-01-18 01:53:19 +0000 | ||
43 | @@ -59,7 +59,6 @@ | ||
44 | return 0; | ||
45 | } | ||
46 | |||
47 | -/* { dg-final { scan-tree-dump-times "vect_recog_widen_shift_pattern: detected" 1 "vect" { target vect_widen_shift } } } */ | ||
48 | +/* { dg-final { scan-tree-dump-times "vect_recog_widen_shift_pattern: detected" 2 "vect" { target vect_widen_shift } } } */ | ||
49 | /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */ | ||
50 | /* { dg-final { cleanup-tree-dump "vect" } } */ | ||
51 | - | ||
52 | |||
53 | === modified file 'gcc/tree-vect-patterns.c' | ||
54 | --- old/gcc/tree-vect-patterns.c 2011-12-20 07:47:44 +0000 | ||
55 | +++ new/gcc/tree-vect-patterns.c 2012-01-18 01:53:19 +0000 | ||
56 | @@ -1224,13 +1224,15 @@ | ||
57 | { | ||
58 | use_lhs = gimple_assign_lhs (use_stmt); | ||
59 | use_type = TREE_TYPE (use_lhs); | ||
60 | - /* Support only type promotion or signedess change. Check that USE_TYPE | ||
61 | - is not bigger than the original type. */ | ||
62 | + /* Support only type demotion or signedess change. */ | ||
63 | if (!INTEGRAL_TYPE_P (use_type) | ||
64 | - || TYPE_PRECISION (new_type) > TYPE_PRECISION (use_type) | ||
65 | - || TYPE_PRECISION (type) < TYPE_PRECISION (use_type)) | ||
66 | + || TYPE_PRECISION (type) <= TYPE_PRECISION (use_type)) | ||
67 | return NULL; | ||
68 | |||
69 | + /* Check that NEW_TYPE is not bigger than the conversion result. */ | ||
70 | + if (TYPE_PRECISION (new_type) > TYPE_PRECISION (use_type)) | ||
71 | + return NULL; | ||
72 | + | ||
73 | if (TYPE_UNSIGNED (new_type) != TYPE_UNSIGNED (use_type) | ||
74 | || TYPE_PRECISION (new_type) != TYPE_PRECISION (use_type)) | ||
75 | { | ||
76 | |||