https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66239
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |WAITING Last reconfirmed| |2015-05-21 Ever confirmed|0 |1 --- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to ktkachov from comment #3) > Considering that the -O0 version is the only one that ends up calling the > library functions, perhaps there's something wrong with your math library? > I'm using newlib for arm-none-eabi Or maybe the libm that is not using the correct ABI. Since you did not place how you built gcc, it is hard to tell right away.