https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111221
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- That is GCC will remove additions of -0.0: double addneg0 (double a) { return a + -0.0; } Gets optimized to just `return a;`.
pinskia at gcc dot gnu.org via Gcc-bugs Mon, 28 Aug 2023 23:01:59 -0700
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111221
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- That is GCC will remove additions of -0.0: double addneg0 (double a) { return a + -0.0; } Gets optimized to just `return a;`.