This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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
--


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]