* config/xtensa/xtensa.c (xtensa_expand_block_move): Use
authorbwilson <bwilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 12 Mar 2002 23:33:11 +0000 (23:33 +0000)
committerbwilson <bwilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 12 Mar 2002 23:33:11 +0000 (23:33 +0000)
        validize_mem() instead of change_address to avoid clobbering
        memory attributes.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50693 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 21849b7..83dca8d 100644 (file)
@@ -1,3 +1,9 @@
+2002-03-12  Bob Wilson  <bob.wilson@acm.org>
+
+       * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
+       validize_mem() instead of change_address to avoid clobbering
+       memory attributes.
+
 2002-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
 
        * c-lex.h (position_after_whitespace): Remove.
index 979b3e2..fe7e9f3 100644 (file)
@@ -1353,8 +1353,8 @@ xtensa_expand_block_move (operands)
     return 0;
 
    /* make sure the memory addresses are valid */
-  operands[0] = change_address (dest, VOIDmode, NULL);
-  operands[1] = change_address (src, VOIDmode, NULL);
+  operands[0] = validize_mem (dest);
+  operands[1] = validize_mem (src);
 
   emit_insn (gen_movstrsi_internal (operands[0], operands[1],
                                    operands[2], operands[3]));