• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/gcc/4.9.3/111-pr65730.patch
Gustavo ZacariasGustavo Zacarias committed 2fed00ea1ea27 Jun 2015
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
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
​
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.