aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.c
diff options
context:
space:
mode:
authorBernd Edlinger <bernd.edlinger@hotmail.de>2013-12-06 14:23:00 +0000
committerBernd Edlinger <edlinger@gcc.gnu.org>2013-12-06 14:23:00 +0000
commit26c096c3a397a9b7ae7d5a0efea8ed115c3a8ee9 (patch)
tree482c533f5377f8789b141d79c8e79ff499ea71d3 /gcc/expr.c
parent079db27b09f2788501dea701ac7559ee8ab2b438 (diff)
downloadgcc-26c096c3a397a9b7ae7d5a0efea8ed115c3a8ee9.zip
gcc-26c096c3a397a9b7ae7d5a0efea8ed115c3a8ee9.tar.gz
gcc-26c096c3a397a9b7ae7d5a0efea8ed115c3a8ee9.tar.bz2
expr.c (expand_assignment): Update bitregion_start and bitregion_end.
2013-12-06 Bernd Edlinger <bernd.edlinger@hotmail.de> * expr.c (expand_assignment): Update bitregion_start and bitregion_end. From-SVN: r205745
Diffstat (limited to 'gcc/expr.c')
-rw-r--r--gcc/expr.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/expr.c b/gcc/expr.c
index 2a13d8f..f173d03 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -4880,6 +4880,9 @@ expand_assignment (tree to, tree from, bool nontemporal)
&& MEM_ALIGN (to_rtx) == GET_MODE_ALIGNMENT (mode1))
{
to_rtx = adjust_address (to_rtx, mode1, bitpos / BITS_PER_UNIT);
+ bitregion_start = 0;
+ if (bitregion_end >= (unsigned HOST_WIDE_INT) bitpos)
+ bitregion_end -= bitpos;
bitpos = 0;
}