https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70777
Marc Glisse <glisse at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2016-04-24 Component|c |tree-optimization Ever confirmed|0 |1 --- Comment #1 from Marc Glisse <glisse at gcc dot gnu.org> --- fold-const.c: /* Canonicalize x*x as pow(x,2.0), which is expanded as x*x. */ But this isn't quite true. pow is lowered to x*x in the sincos pass, which doesn't run at -Og.