This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: CCP propagating conditional expression constants
Mark Mitchell <mark@codesourcery.com> writes:
| Sebastian Pop wrote:
|
| > if (x == 0)
| > a = b / x;
|
| If we end up warning about this from the optimizers (and, at this point,
| we all know that's not my favorite idea), then I think we should avoid
| warning about:
|
| if (x == 0 && false)
| a = b / x;
I really favor the idea of stopping warning from the optimizers.
However, I don't know yet (and I have not seen) an alternative that
would be better than current situation. Do you have something
specific in ming for replacements?
-- Gaby