[Bug tree-optimization/19723] [4.0 Regression] A side effect is missed in 0 % a++.
rth at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Feb 1 20:20:00 GMT 2005
------- Additional Comments From rth at gcc dot gnu dot org 2005-02-01 20:20 -------
Subject: Re: [4.0 Regression] A side effect is missed in 0 % a++.
On Tue, Feb 01, 2005 at 07:49:16AM -0700, Jeffrey A Law wrote:
> Would would mean that we really can't do anything with DIV/MOD when
> the numerator is a constant and the denominator is an unknown.
Correct.
> What I think we really want is to know whether or not the language
> requires trapping on a DIV/MOD by zero. If so, then disable this class
> of optimizations, otherwise we have a non-conformant program.
True.
r~
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19723
More information about the Gcc-bugs
mailing list