The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / gcc / 4.9.2 / 111-pr65730.patch
1 From b9a7775674d91c7af8043a83211ffeaa576327d7 Mon Sep 17 00:00:00 2001
2 From: Max Filippov <jcmvbkbc@gmail.com>
3 Date: Fri, 10 Apr 2015 17:46:30 +0300
4 Subject: [PATCH] Fix PR target/65730
5
6 2015-05-20  Max Filippov  <jcmvbkbc@gmail.com>
7 gcc/
8         * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
9         by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
10
11 Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
12 ---
13 Backported from: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223452
14 Changes to ChangeLog are dropped.
15
16  gcc/config/xtensa/xtensa.c | 5 +++--
17  1 file changed, 3 insertions(+), 2 deletions(-)
18
19 diff --git a/gcc/config/xtensa/xtensa.c b/gcc/config/xtensa/xtensa.c
20 index eb039ba..7296e36 100644
21 --- a/gcc/config/xtensa/xtensa.c
22 +++ b/gcc/config/xtensa/xtensa.c
23 @@ -1461,8 +1461,9 @@ init_alignment_context (struct alignment_context *ac, rtx mem)
24    if (ac->shift != NULL_RTX)
25      {
26        /* Shift is the byte count, but we need the bitcount.  */
27 -      ac->shift = expand_simple_binop (SImode, MULT, ac->shift,
28 -                                      GEN_INT (BITS_PER_UNIT),
29 +      gcc_assert (exact_log2 (BITS_PER_UNIT) >= 0);
30 +      ac->shift = expand_simple_binop (SImode, ASHIFT, ac->shift,
31 +                                      GEN_INT (exact_log2 (BITS_PER_UNIT)),
32                                        NULL_RTX, 1, OPTAB_DIRECT);
33        ac->modemask = expand_simple_binop (SImode, ASHIFT,
34                                           GEN_INT (GET_MODE_MASK (mode)),
35 -- 
36 1.8.1.4
37