From: bwilson Date: Mon, 5 Feb 2007 22:50:31 +0000 (+0000) Subject: * config/xtensa/xtensa.c (constantpool_mem_p): Skip over SUBREGs. X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b0e603fe20730c4fa0eed99774f33e90fe4527af;p=thirdparty%2Fgcc.git * 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 00483ff65c3d..148de8f7038c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2007-02-05 Bob Wilson + + * config/xtensa/xtensa.c (constantpool_mem_p): Skip over SUBREGs. + 2007-02-05 Richard Guenther * tree-vectorizer.h (vectorizable_function): Add argument type diff --git a/gcc/config/xtensa/xtensa.c b/gcc/config/xtensa/xtensa.c index 6269f1feef2d..5f7e6d05d354 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;