]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR rtl-optimization/12092 (ICE: Floating point exception)
authorRoger Sayle <roger@eyesopen.com>
Sun, 2 Jan 2005 16:46:45 +0000 (16:46 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Sun, 2 Jan 2005 16:46:45 +0000 (16:46 +0000)
PR rtl-optimization/12092
* loop.c (emit_prefetch_instructions): Do nothing if PREFETCH_BLOCK
is zero.

* gcc.dg/pr12092-1.c: New test case.

Co-Authored-By: Andrew Pinski <pinskia@physics.uc.edu>
Co-Authored-By: James E Wilson <wilson@specifixinc.com>
From-SVN: r92807

gcc/ChangeLog
gcc/loop.c
gcc/testsuite/ChangeLog

index 07e8173137ec3df555bf3cb85a21473bec2a2450..1a7ba3820c70c38f3a9be38edec54b5b79430ac2 100644 (file)
@@ -1,3 +1,11 @@
+2005-01-02  Roger Sayle  <roger@eyesopen.com>
+           Andrew Pinski  <pinskia@physics.uc.edu>
+           James E. Wilson  <wilson@specifixinc.com>
+
+       PR rtl-optimization/12092
+       * loop.c (emit_prefetch_instructions): Do nothing if PREFETCH_BLOCK
+       is zero.
+
 2004-12-30  Roger Sayle  <roger@eyesopen.com>
 
        PR middle-end/19175
index 7249e5fdd31a93995eb000193ae497906ad2520e..ceffad9746e742aad19cc1d367757dc61b413fcb 100644 (file)
@@ -3859,7 +3859,7 @@ emit_prefetch_instructions (struct loop *loop)
   struct prefetch_info info[MAX_PREFETCHES];
   struct loop_ivs *ivs = LOOP_IVS (loop);
 
-  if (!HAVE_prefetch)
+  if (!HAVE_prefetch || PREFETCH_BLOCK == 0)
     return;
 
   /* Consider only loops w/o calls.  When a call is done, the loop is probably
index 17a2ace54d5fdbaf5ebaaa86e36821dd6033d23c..7c87500dfd981c12568977d87291ad44200b081b 100644 (file)
@@ -1,3 +1,9 @@
+2005-01-02  Roger Sayle  <roger@eyesopen.com>
+           Andrew Pinski  <pinskia@physics.uc.edu>
+
+       PR rtl-optimization/12092
+       * gcc.dg/pr12092-1.c: New test case.
+
 2004-12-28  Jakub Jelinek  <jakub@redhat.com>
 
        PR c++/18384, c++/18327