aboutsummaryrefslogtreecommitdiff
path: root/gcc/simplify-rtx.c
diff options
context:
space:
mode:
authorAndreas Krebbel <krebbel1@de.ibm.com>2006-11-09 17:56:04 +0000
committerAndreas Krebbel <krebbel@gcc.gnu.org>2006-11-09 17:56:04 +0000
commitd82a02fa4f3cd88f8d8f080ffe4bd9c7536c7e8f (patch)
treecf0b47a5a352e79744f0913d07ee2799df3c370a /gcc/simplify-rtx.c
parent282530ce3669272f75dc9e511736315377f4b518 (diff)
downloadgcc-d82a02fa4f3cd88f8d8f080ffe4bd9c7536c7e8f.zip
gcc-d82a02fa4f3cd88f8d8f080ffe4bd9c7536c7e8f.tar.gz
gcc-d82a02fa4f3cd88f8d8f080ffe4bd9c7536c7e8f.tar.bz2
simplify-rtx.c (avoid_constant_pool_reference): Avoid calling simplify_subreg with BLKmode outer mode.
2006-11-09 Andreas Krebbel <krebbel1@de.ibm.com> * simplify-rtx.c (avoid_constant_pool_reference): Avoid calling simplify_subreg with BLKmode outer mode. 2006-11-09 Andreas Krebbel <krebbel1@de.ibm.com> * gcc.dg/20061109-1.c: New testcase. From-SVN: r118622
Diffstat (limited to 'gcc/simplify-rtx.c')
-rw-r--r--gcc/simplify-rtx.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/simplify-rtx.c b/gcc/simplify-rtx.c
index fe5463a..6a9464c 100644
--- a/gcc/simplify-rtx.c
+++ b/gcc/simplify-rtx.c
@@ -158,6 +158,9 @@ avoid_constant_pool_reference (rtx x)
return x;
}
+ if (GET_MODE (x) == BLKmode)
+ return x;
+
addr = XEXP (x, 0);
/* Call target hook to avoid the effects of -fpic etc.... */