diff options
author | Khem Raj <raj.khem@gmail.com> | 2011-09-29 22:12:52 +0000 |
---|---|---|
committer | Koen Kooi <koen@dominion.thruhere.net> | 2011-10-04 13:48:57 +0200 |
commit | b9b5306e551f26d76e9dc5fa6f10c2c095fe6e0f (patch) | |
tree | 3908112a2010485903e16f9f7fec5d0fec2a37fa /meta-oe/recipes-devtools/gcc/gcc-4.6/linaro/gcc-4.6-linaro-r106804.patch | |
parent | 9f2e55480dc94e90ac09ca468cf2f0dacb54ae2d (diff) | |
download | meta-openembedded-b9b5306e551f26d76e9dc5fa6f10c2c095fe6e0f.tar.gz |
gcc-4.6: Bring in latest linaro patches
Adjust existing patches for latest FSF gcc-4_6-branch
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Acked-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Diffstat (limited to 'meta-oe/recipes-devtools/gcc/gcc-4.6/linaro/gcc-4.6-linaro-r106804.patch')
-rw-r--r-- | meta-oe/recipes-devtools/gcc/gcc-4.6/linaro/gcc-4.6-linaro-r106804.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/gcc/gcc-4.6/linaro/gcc-4.6-linaro-r106804.patch b/meta-oe/recipes-devtools/gcc/gcc-4.6/linaro/gcc-4.6-linaro-r106804.patch new file mode 100644 index 0000000000..09d0767914 --- /dev/null +++ b/meta-oe/recipes-devtools/gcc/gcc-4.6/linaro/gcc-4.6-linaro-r106804.patch | |||
@@ -0,0 +1,38 @@ | |||
1 | 2011-09-01 Andrew Stubbs <ams@codesourcery.com> | ||
2 | |||
3 | gcc/ | ||
4 | * config/arm/predicates.md (shift_amount_operand): Ensure shift | ||
5 | amount is positive. | ||
6 | |||
7 | gcc/testsuite/ | ||
8 | * gcc.dg/pr50193-1.c: New file. | ||
9 | |||
10 | === modified file 'gcc/config/arm/predicates.md' | ||
11 | --- old/gcc/config/arm/predicates.md 2011-09-05 09:40:19 +0000 | ||
12 | +++ new/gcc/config/arm/predicates.md 2011-09-12 11:24:34 +0000 | ||
13 | @@ -132,7 +132,8 @@ | ||
14 | (define_predicate "shift_amount_operand" | ||
15 | (ior (and (match_test "TARGET_ARM") | ||
16 | (match_operand 0 "s_register_operand")) | ||
17 | - (match_operand 0 "const_int_operand"))) | ||
18 | + (and (match_operand 0 "const_int_operand") | ||
19 | + (match_test "INTVAL (op) > 0")))) | ||
20 | |||
21 | (define_predicate "arm_add_operand" | ||
22 | (ior (match_operand 0 "arm_rhs_operand") | ||
23 | |||
24 | === added file 'gcc/testsuite/gcc.dg/pr50193-1.c' | ||
25 | --- old/gcc/testsuite/gcc.dg/pr50193-1.c 1970-01-01 00:00:00 +0000 | ||
26 | +++ new/gcc/testsuite/gcc.dg/pr50193-1.c 2011-09-01 12:22:14 +0000 | ||
27 | @@ -0,0 +1,10 @@ | ||
28 | +/* PR 50193: ARM: ICE on a | (b << negative-constant) */ | ||
29 | +/* Ensure that the compiler doesn't ICE. */ | ||
30 | + | ||
31 | +/* { dg-options "-O2" } */ | ||
32 | + | ||
33 | +int | ||
34 | +foo(int a, int b) | ||
35 | +{ | ||
36 | + return a | (b << -3); /* { dg-warning "left shift count is negative" } */ | ||
37 | +} | ||
38 | |||