This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/24333] missed div optimizations?
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Oct 2005 15:42:06 -0000
- Subject: [Bug tree-optimization/24333] missed div optimizations?
- References: <bug-24333-7667@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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