aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.c
diff options
context:
space:
mode:
authorBernd Edlinger <bernd.edlinger@hotmail.de>2016-07-27 20:35:35 +0000
committerBernd Edlinger <edlinger@gcc.gnu.org>2016-07-27 20:35:35 +0000
commitec1e2a4097535d7075929d638f4120c5a5694725 (patch)
tree30936762c7a8b046127e013b16d6d42f50e93b71 /gcc/expr.c
parent98060bbea842d8b0f3b5d41efa6ef15c266efcf4 (diff)
downloadgcc-ec1e2a4097535d7075929d638f4120c5a5694725.zip
gcc-ec1e2a4097535d7075929d638f4120c5a5694725.tar.gz
gcc-ec1e2a4097535d7075929d638f4120c5a5694725.tar.bz2
defaults.h (LOG2_BITS_PER_UNIT): Move from here...
2016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de> * defaults.h (LOG2_BITS_PER_UNIT): Move from here... * tree.h (LOG2_BITS_PER_UNIT): ...to here. (BITS_PER_UNIT_LOG): Remove. (int_bit_position): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG. * expr.c (expand_assignment): Likewise. * stor-layout.c (initialize_sizetypes): Likewise. c-family: 2016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de> * c-common.c (check_user_alignment): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG. From-SVN: r238800
Diffstat (limited to 'gcc/expr.c')
-rw-r--r--gcc/expr.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/expr.c b/gcc/expr.c
index 1cb233c..46de35f 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -4990,8 +4990,7 @@ expand_assignment (tree to, tree from, bool nontemporal)
if (bitpos < 0)
{
gcc_assert (offset == NULL_TREE);
- offset = size_int (bitpos >> (BITS_PER_UNIT == 8
- ? 3 : exact_log2 (BITS_PER_UNIT)));
+ offset = size_int (bitpos >> LOG2_BITS_PER_UNIT);
bitpos &= BITS_PER_UNIT - 1;
}