diff options
author | Koen Kooi <koen@dominion.thruhere.net> | 2012-03-23 08:22:26 +0100 |
---|---|---|
committer | Koen Kooi <koen@dominion.thruhere.net> | 2012-03-24 07:35:22 +0100 |
commit | ff0f815593c33f1a82ba4d1cbe41e6b987da1f47 (patch) | |
tree | 22b43fa2e84f25cc948df79f9e9de07e8ec57418 /toolchain-layer/recipes-devtools/gcc/gcc-4.6/linaro/gcc-4.6-linaro-r106806.patch | |
parent | 6b22bd198a87b5f113971d8fcd0e7211cd143c7d (diff) | |
download | meta-openembedded-ff0f815593c33f1a82ba4d1cbe41e6b987da1f47.tar.gz |
toolchain-layer: move binutils and gcc from meta-oe into here
Acked-by: Martin Jansa <Martin.Jansa@gmail.com>
Acked-by: Eric Bénard <eric@eukrea.com>
Acked-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Diffstat (limited to 'toolchain-layer/recipes-devtools/gcc/gcc-4.6/linaro/gcc-4.6-linaro-r106806.patch')
-rw-r--r-- | toolchain-layer/recipes-devtools/gcc/gcc-4.6/linaro/gcc-4.6-linaro-r106806.patch | 92 |
1 files changed, 92 insertions, 0 deletions
diff --git a/toolchain-layer/recipes-devtools/gcc/gcc-4.6/linaro/gcc-4.6-linaro-r106806.patch b/toolchain-layer/recipes-devtools/gcc/gcc-4.6/linaro/gcc-4.6-linaro-r106806.patch new file mode 100644 index 0000000000..2b96854c95 --- /dev/null +++ b/toolchain-layer/recipes-devtools/gcc/gcc-4.6/linaro/gcc-4.6-linaro-r106806.patch | |||
@@ -0,0 +1,92 @@ | |||
1 | 2011-09-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org> | ||
2 | |||
3 | gcc/testsuite/ | ||
4 | * gcc.target/arm/pr50099.c: Fix testcase from previous commit. | ||
5 | |||
6 | 2011-09-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org> | ||
7 | |||
8 | LP:838994 | ||
9 | gcc/ | ||
10 | Backport from mainline. | ||
11 | |||
12 | 2011-09-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org> | ||
13 | |||
14 | PR target/50099 | ||
15 | * config/arm/iterators.md (qhs_zextenddi_cstr): New. | ||
16 | (qhs_zextenddi_op): New. | ||
17 | * config/arm/arm.md ("zero_extend<mode>di2"): Use them. | ||
18 | * config/arm/predicates.md ("arm_extendqisi_mem_op"): | ||
19 | Distinguish between ARM and Thumb2 states. | ||
20 | |||
21 | gcc/testsuite/ | ||
22 | * gcc.target/arm/pr50099.c: New test. | ||
23 | |||
24 | === modified file 'gcc/config/arm/arm.md' | ||
25 | --- old/gcc/config/arm/arm.md 2011-08-25 13:26:58 +0000 | ||
26 | +++ new/gcc/config/arm/arm.md 2011-09-12 12:32:29 +0000 | ||
27 | @@ -4136,8 +4136,8 @@ | ||
28 | |||
29 | (define_insn "zero_extend<mode>di2" | ||
30 | [(set (match_operand:DI 0 "s_register_operand" "=r") | ||
31 | - (zero_extend:DI (match_operand:QHSI 1 "<qhs_extenddi_op>" | ||
32 | - "<qhs_extenddi_cstr>")))] | ||
33 | + (zero_extend:DI (match_operand:QHSI 1 "<qhs_zextenddi_op>" | ||
34 | + "<qhs_zextenddi_cstr>")))] | ||
35 | "TARGET_32BIT <qhs_zextenddi_cond>" | ||
36 | "#" | ||
37 | [(set_attr "length" "8") | ||
38 | |||
39 | === modified file 'gcc/config/arm/iterators.md' | ||
40 | --- old/gcc/config/arm/iterators.md 2011-05-03 15:14:56 +0000 | ||
41 | +++ new/gcc/config/arm/iterators.md 2011-09-06 14:29:24 +0000 | ||
42 | @@ -379,10 +379,14 @@ | ||
43 | (define_mode_attr qhs_zextenddi_cond [(SI "") (HI "&& arm_arch6") (QI "")]) | ||
44 | (define_mode_attr qhs_sextenddi_cond [(SI "") (HI "&& arm_arch6") | ||
45 | (QI "&& arm_arch6")]) | ||
46 | +(define_mode_attr qhs_zextenddi_op [(SI "s_register_operand") | ||
47 | + (HI "nonimmediate_operand") | ||
48 | + (QI "nonimmediate_operand")]) | ||
49 | (define_mode_attr qhs_extenddi_op [(SI "s_register_operand") | ||
50 | (HI "nonimmediate_operand") | ||
51 | - (QI "nonimmediate_operand")]) | ||
52 | -(define_mode_attr qhs_extenddi_cstr [(SI "r") (HI "rm") (QI "rm")]) | ||
53 | + (QI "arm_reg_or_extendqisi_mem_op")]) | ||
54 | +(define_mode_attr qhs_extenddi_cstr [(SI "r") (HI "rm") (QI "rUq")]) | ||
55 | +(define_mode_attr qhs_zextenddi_cstr [(SI "r") (HI "rm") (QI "rm")]) | ||
56 | |||
57 | ;;---------------------------------------------------------------------------- | ||
58 | ;; Code attributes | ||
59 | |||
60 | === modified file 'gcc/config/arm/predicates.md' | ||
61 | --- old/gcc/config/arm/predicates.md 2011-09-12 11:24:34 +0000 | ||
62 | +++ new/gcc/config/arm/predicates.md 2011-09-12 12:32:29 +0000 | ||
63 | @@ -289,8 +289,11 @@ | ||
64 | |||
65 | (define_special_predicate "arm_extendqisi_mem_op" | ||
66 | (and (match_operand 0 "memory_operand") | ||
67 | - (match_test "arm_legitimate_address_outer_p (mode, XEXP (op, 0), | ||
68 | - SIGN_EXTEND, 0)"))) | ||
69 | + (match_test "TARGET_ARM ? arm_legitimate_address_outer_p (mode, | ||
70 | + XEXP (op, 0), | ||
71 | + SIGN_EXTEND, | ||
72 | + 0) | ||
73 | + : memory_address_p (QImode, XEXP (op, 0))"))) | ||
74 | |||
75 | (define_special_predicate "arm_reg_or_extendqisi_mem_op" | ||
76 | (ior (match_operand 0 "arm_extendqisi_mem_op") | ||
77 | |||
78 | === added file 'gcc/testsuite/gcc.target/arm/pr50099.c' | ||
79 | --- old/gcc/testsuite/gcc.target/arm/pr50099.c 1970-01-01 00:00:00 +0000 | ||
80 | +++ new/gcc/testsuite/gcc.target/arm/pr50099.c 2011-09-09 16:42:45 +0000 | ||
81 | @@ -0,0 +1,10 @@ | ||
82 | +/* { dg-do compile } */ | ||
83 | +/* { dg-options "-O2" } */ | ||
84 | + | ||
85 | +long long foo (signed char * arg) | ||
86 | +{ | ||
87 | + long long temp_1; | ||
88 | + | ||
89 | + temp_1 = arg[256]; | ||
90 | + return temp_1; | ||
91 | +} | ||
92 | |||