OSDN Git Service

* config/spu/spu.c (spu_safe_dma): Respect TARGET_SAFE_DMA.
authoruweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 12 Aug 2008 13:09:09 +0000 (13:09 +0000)
committeruweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 12 Aug 2008 13:09:09 +0000 (13:09 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@139011 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/spu/spu.c

index dfaa93e..42afad2 100644 (file)
@@ -1,5 +1,9 @@
 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
 
+       * config/spu/spu.c (spu_safe_dma): Respect TARGET_SAFE_DMA.
+
+2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
+
        * config/spu/spu.h (DWARF_FRAME_RETURN_COLUMN): Define.
 
 2008-08-12  Jakub Jelinek  <jakub@redhat.com>
index b40d12c..230f4c0 100644 (file)
@@ -4565,7 +4565,7 @@ spu_restore_stack_block (rtx op0 ATTRIBUTE_UNUSED, rtx op1)
 int
 spu_safe_dma (HOST_WIDE_INT channel)
 {
-  return (channel >= 21 && channel <= 27);
+  return TARGET_SAFE_DMA && channel >= 21 && channel <= 27;
 }
 
 void