https://gcc.gnu.org/bugzilla/show_bug.cgi?id=24333
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEW |RESOLVED Target Milestone|--- |7.0 --- Comment #9 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Pawel Sikora from comment #6) > `int f( int x ) { return x / x; }' still not optimized on 4.2/4.3 Fixed by r7-4716-g5b7f6ed0b39936. (In reply to Andrew Pinski from comment #5) > x/x is done for fp now. And redone by r5-4923-ga7f24614b3c58d (and friends). So closing as fixed for GCC 7.