OSDN Git Service

* config/xtensa/xtensa.c (constantpool_mem_p): Skip over SUBREGs.
authorbwilson <bwilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 5 Feb 2007 22:50:31 +0000 (22:50 +0000)
committerbwilson <bwilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 5 Feb 2007 22:50:31 +0000 (22:50 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121622 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/xtensa/xtensa.c

index 00483ff..148de8f 100644 (file)
@@ -1,3 +1,7 @@
+2007-02-05  Bob Wilson  <bob.wilson@acm.org>
+
+       * config/xtensa/xtensa.c (constantpool_mem_p): Skip over SUBREGs.
+
 2007-02-05  Richard Guenther  <rguenther@suse.de>
 
        * tree-vectorizer.h (vectorizable_function): Add argument type
index 6269f1f..5f7e6d0 100644 (file)
@@ -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;