diff options
author | Bernd Edlinger <bernd.edlinger@hotmail.de> | 2016-07-27 20:35:35 +0000 |
---|---|---|
committer | Bernd Edlinger <edlinger@gcc.gnu.org> | 2016-07-27 20:35:35 +0000 |
commit | ec1e2a4097535d7075929d638f4120c5a5694725 (patch) | |
tree | 30936762c7a8b046127e013b16d6d42f50e93b71 /gcc/expr.c | |
parent | 98060bbea842d8b0f3b5d41efa6ef15c266efcf4 (diff) | |
download | gcc-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.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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; } |