I'd expect (considering the whole GNU toolchain, not just GCC in isolation) this to require a corresponding glibc change to build with -ftrapping-math (added alongside the use of -frounding-math - adding the option is of course save independently of the GCC change).
Also, GCC tests involving floating-point exceptions need to use -ftrapping-math with this patch. That probably means making add_options_for_ieee always use -ftrapping-math, and making sure all tests that use the fenv_exceptions effective target also use dg-add-options ieee. -- Joseph S. Myers jos...@codesourcery.com