This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: fold_truthop patch causes sparcv9 testsuite regressions
- From: Roger Sayle <roger at eyesopen dot com>
- To: "David S. Miller" <davem at redhat dot com>
- Cc: <ro at TechFak dot Uni-Bielefeld dot DE>, <gcc-bugs at gcc dot gnu dot org>
- Date: Mon, 24 Jun 2002 07:42:31 -0600 (MDT)
- Subject: Re: fold_truthop patch causes sparcv9 testsuite regressions
Hi David,
> 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 :-)
That's what surprises me. I'd have thought there'd atleast be a test
for the warning in gcc.dg. Perhaps if this check, if it exists, was
made a link test instead of just a compile test?
Roger
--