-Ofast is one of those dangerous flags that you should probably be careful with. It is “contagious” and it can mess up code elsewhere in the program, because it changes processor flags.
I would try a more specific flag like -ffinite-math-only.
I would try a more specific flag like -ffinite-math-only.
I like to think that the flag should be renamed “-Ofuck-my-shit-up”.
So, yes when targeting VFP math. NEON already always works in this mode though.