diff options
Diffstat (limited to 'meta-oe/recipes-devtools/gcc/gcc-4.6/linaro/gcc-4.6-linaro-r106805.patch')
-rw-r--r-- | meta-oe/recipes-devtools/gcc/gcc-4.6/linaro/gcc-4.6-linaro-r106805.patch | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/gcc/gcc-4.6/linaro/gcc-4.6-linaro-r106805.patch b/meta-oe/recipes-devtools/gcc/gcc-4.6/linaro/gcc-4.6-linaro-r106805.patch new file mode 100644 index 0000000000..5dec32fa71 --- /dev/null +++ b/meta-oe/recipes-devtools/gcc/gcc-4.6/linaro/gcc-4.6-linaro-r106805.patch | |||
@@ -0,0 +1,47 @@ | |||
1 | 2011-09-12 Andrew Stubbs <ams@codesourcery.com> | ||
2 | |||
3 | Backport from FSF mainline: | ||
4 | |||
5 | 2011-09-08 Andrew Stubbs <ams@codesourcery.com> | ||
6 | |||
7 | PR tree-optimization/50318 | ||
8 | |||
9 | gcc/ | ||
10 | * tree-ssa-math-opts.c (convert_plusminus_to_widen): Correct | ||
11 | typo in use of mult_rhs1 and mult_rhs2. | ||
12 | |||
13 | gcc/testsuite/ | ||
14 | * gcc.target/arm/pr50318-1.c: New file. | ||
15 | |||
16 | === added file 'gcc/testsuite/gcc.target/arm/pr50318-1.c' | ||
17 | --- old/gcc/testsuite/gcc.target/arm/pr50318-1.c 1970-01-01 00:00:00 +0000 | ||
18 | +++ new/gcc/testsuite/gcc.target/arm/pr50318-1.c 2011-09-08 20:11:43 +0000 | ||
19 | @@ -0,0 +1,11 @@ | ||
20 | +/* { dg-do compile } */ | ||
21 | +/* { dg-options "-O2" } */ | ||
22 | +/* { dg-require-effective-target arm_dsp } */ | ||
23 | + | ||
24 | +long long test (unsigned int sec, unsigned long long nsecs) | ||
25 | +{ | ||
26 | + return (long long)(long)sec * 1000000000L + (long long)(unsigned | ||
27 | + long)nsecs; | ||
28 | +} | ||
29 | + | ||
30 | +/* { dg-final { scan-assembler "umlal" } } */ | ||
31 | |||
32 | === modified file 'gcc/tree-ssa-math-opts.c' | ||
33 | --- old/gcc/tree-ssa-math-opts.c 2011-08-09 10:26:48 +0000 | ||
34 | +++ new/gcc/tree-ssa-math-opts.c 2011-09-08 20:11:43 +0000 | ||
35 | @@ -1699,9 +1699,9 @@ | ||
36 | |||
37 | /* Handle constants. */ | ||
38 | if (TREE_CODE (mult_rhs1) == INTEGER_CST) | ||
39 | - rhs1 = fold_convert (type1, mult_rhs1); | ||
40 | + mult_rhs1 = fold_convert (type1, mult_rhs1); | ||
41 | if (TREE_CODE (mult_rhs2) == INTEGER_CST) | ||
42 | - rhs2 = fold_convert (type2, mult_rhs2); | ||
43 | + mult_rhs2 = fold_convert (type2, mult_rhs2); | ||
44 | |||
45 | gimple_assign_set_rhs_with_ops_1 (gsi, wmult_code, mult_rhs1, mult_rhs2, | ||
46 | add_rhs); | ||
47 | |||