https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112963
--- Comment #8 from Iain Sandoe <iains at gcc dot gnu.org> --- I propose to test the patch at comment #2 as a step to restore the original behaviour. It would be nice to make the libm use configurable (as per libgfortran or libstdc++) as a separate issue.