https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119300
--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Haochen Jiang <[email protected]>: https://gcc.gnu.org/g:cb0434704883beff653015f55b01d9efe7e4ab96 commit r17-3775-gcb0434704883beff653015f55b01d9efe7e4ab96 Author: Sun, Qin <[email protected]> Date: Thu Aug 27 11:33:29 2026 +0800 i386: Fix ICE with FP arithmetic units (387) turned off [PR119300] When compiling with `-msoft-float -mfpmath=387`, `-msoft-float` turns off 387. With neither FPMATH_SSE nor FPMATH_387 enabled, no unit can do FP arithmetics. The i386-options.cc omits this kind of check, so ICE is triggered. We need to add check in i386-options.cc to cover FPMATH_387 scenario when FPMATH_SSE is false. gcc/ChangeLog: PR target/119300 * config/i386/i386-options.cc (ix86_option_override_internal): Warn and use SSE arithmetics when -mfpmath=387 is set, 387 is turned off but SSE is available. gcc/testsuite/ChangeLog: PR target/119300 * gcc.target/i386/pr119300.c: New test. * gcc.target/i386/pr126148.c: Use -mno-sse instead of -mfpmath=387 to disable SSE math.
