Hey, Previously, this test was added to fix this bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112337. However, it did not check the compilation options before using them, leading to errors. This patch fixes the test by first checking whether it can use the options before using them. Tested for arm-none-eabi and found no regressions. The output of check-gcc with RUNTESTFLAGS="arm.exp=*" changed like this: Before: # of expected passes 5963 # of unexpected failures 64 After: # of expected passes 5964 # of unexpected failures 63 Ok for master? Regards, Saurabh gcc/testsuite/ChangeLog: * gcc.target/arm/pr112337.c: Check whether we can use the compilation options before using them.