[Bug c++/119405] Missed FMA optimization for C code present in C++

2025-03-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119405 Andrew Pinski changed: What|Removed |Added Component|c |c++ --- Comment #1 from Andrew Pinski

[Bug c++/119405] Missed FMA optimization for C code present in C++

2025-03-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119405 --- Comment #4 from Andrew Pinski --- Setting to =off for -std=c* (and not -std=c++*) was done in r0-126303-g6dbe09581a1349.

[Bug c++/119405] Missed FMA optimization for C code present in C++

2025-03-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119405 --- Comment #3 from Andrew Pinski --- https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106902#c36 So this is by design. Except maybe C++ front-end should change too.

[Bug c++/119405] Missed FMA optimization for C code present in C++

2025-03-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119405 --- Comment #2 from Andrew Pinski --- If you used -std=gnu11, -std=gnu++11 then the setting would be -ffp-contract=on