https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89175
--- Comment #2 from david.monni...@univ-grenoble-alpes.fr <david.monni...@univ-grenoble-alpes.fr> --- How about allowing this optimization if some -fsomething option is set, which would be set if -ffast-math is set? Many float optimizations that do not abide by ISO C are not active if -ffast-math is not set.