summaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorbwilson <bwilson@138bc75d-0d04-0410-961f-82ee72b054a4>2007-02-05 22:50:31 +0000
committerbwilson <bwilson@138bc75d-0d04-0410-961f-82ee72b054a4>2007-02-05 22:50:31 +0000
commitb0e603fe20730c4fa0eed99774f33e90fe4527af (patch)
tree5eb66080c4c117d95de92b87ac550dca922b50c3 /gcc/config
parent6d85df694dad7dce6feb3a161bab3c3fc2878e5a (diff)
downloadgcc-b0e603fe20730c4fa0eed99774f33e90fe4527af.tar.gz
* config/xtensa/xtensa.c (constantpool_mem_p): Skip over SUBREGs.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121622 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/xtensa/xtensa.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/config/xtensa/xtensa.c b/gcc/config/xtensa/xtensa.c
index 6269f1feef2..5f7e6d05d35 100644
--- a/gcc/config/xtensa/xtensa.c
+++ b/gcc/config/xtensa/xtensa.c
@@ -449,6 +449,8 @@ constantpool_address_p (rtx addr)
int
constantpool_mem_p (rtx op)
{
+ if (GET_CODE (op) == SUBREG)
+ op = SUBREG_REG (op);
if (GET_CODE (op) == MEM)
return constantpool_address_p (XEXP (op, 0));
return FALSE;