* config/spu/spu.c (spu_safe_dma): Respect TARGET_SAFE_DMA.
authorUlrich Weigand <uweigand@de.ibm.com>
Tue, 12 Aug 2008 13:09:09 +0000 (13:09 +0000)
committerUlrich Weigand <uweigand@gcc.gnu.org>
Tue, 12 Aug 2008 13:09:09 +0000 (13:09 +0000)
From-SVN: r139011

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