summaryrefslogtreecommitdiff
path: root/gcc/reload.c
diff options
context:
space:
mode:
authoruweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4>2005-12-18 16:06:55 +0000
committeruweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4>2005-12-18 16:06:55 +0000
commitc2c4c18bdbd555961cf868c617311acb51cfac75 (patch)
tree3d046856da977e0859c1d1ed467582650d5b31e1 /gcc/reload.c
parent4c05d6d57b2470d2d3a9d0f41f2edad8b57fbd08 (diff)
downloadgcc-c2c4c18bdbd555961cf868c617311acb51cfac75.tar.gz
PR rtl-optimization/21041
* reload.c (find_reloads_subreg_address): Replace paradoxical subreg of MEM by widened access only if the resulting memory is properly aligned, even on !STRICT_ALIGNMENT targets. PR rtl-optimization/21041 * gcc.dg/pr21041.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108760 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/reload.c')
-rw-r--r--gcc/reload.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/reload.c b/gcc/reload.c
index 7066f7d2dc0..2b61a8eded3 100644
--- a/gcc/reload.c
+++ b/gcc/reload.c
@@ -5911,7 +5911,7 @@ find_reloads_subreg_address (rtx x, int force_replace, int opnum,
/* If this was a paradoxical subreg that we replaced, the
resulting memory must be sufficiently aligned to allow
us to widen the mode of the memory. */
- if (outer_size > inner_size && STRICT_ALIGNMENT)
+ if (outer_size > inner_size)
{
rtx base;