aboutsummaryrefslogtreecommitdiff
path: root/gcc/reload.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2005-12-18 16:06:55 +0000
committerUlrich Weigand <uweigand@gcc.gnu.org>2005-12-18 16:06:55 +0000
commit5a575f77fde8efa894e6eefa20ca7e96881fe0e1 (patch)
tree3d046856da977e0859c1d1ed467582650d5b31e1 /gcc/reload.c
parente75ea710dd6d61c9ed5b5200bd3d0f6132aa606a (diff)
downloadgcc-5a575f77fde8efa894e6eefa20ca7e96881fe0e1.zip
gcc-5a575f77fde8efa894e6eefa20ca7e96881fe0e1.tar.gz
gcc-5a575f77fde8efa894e6eefa20ca7e96881fe0e1.tar.bz2
re PR rtl-optimization/21041 (ICE: output_operand: Cannot decompose address)
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. From-SVN: r108760
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 7066f7d..2b61a8e 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;