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]

[Bug tree-optimization/24333] missed div optimizations?



------- Comment #1 from pinskia at gcc dot gnu dot org  2005-10-12 15:42 -------
(In reply to comment #0)

This one, we have to deal with x = 0, what should we do, trap or not to trap.
> unsigned foo(const unsigned x) {  return (x / x); }


For the following one:
> double bar(const double x) { return (x / x); }

Only with -ffast-math.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24333


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