]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* 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 dfaa93e62a64165eb41c4c40fbf64d14a6c02168..42afad26c729434730ad80f972548cc2d1e90436 100644 (file)
@@ -1,3 +1,7 @@
+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.
index b40d12c014966e30b3caaa3a8a8d2df2e4ef7b52..230f4c076981fbdf0a99da74df83b6ebf4b905f9 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