fold_truthop patch causes sparcv9 testsuite regressions

David S. Miller davem@redhat.com
Mon Jun 24 07:37:00 GMT 2002


   From: Roger Sayle <roger@eyesopen.com>
   Date: Mon, 24 Jun 2002 07:21:56 -0600 (MDT)
   
   Just out of curiosity, does this fix any other GCC test suite failures
   using "-m64" on sparc*-sun-solaris*?  I'd have thought that the recent
   20000511-1.c failure caused by my optimization is only the tip of the
   iceberg.
   
No, it doesn't.  How much code computes the modulo of constant zero on
purpose?  :-)  That is the condition necessary for this to trigger.

If one likes, one could add a "int foo(int x) { return x % 0; }" to
gcc.dg to make sure this bug doesn't come back.  Be mindful to ignore
the warnings properly :-)




More information about the Gcc-bugs mailing list