This is the mail archive of the gcc-patches@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: [Bug tree-optimization/19723] [4.0 Regression] A side effect is missed in 0 % a++.


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.

May this fall into flag_unsafe_math_optimizations?


Paolo


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