https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116621
--- Comment #5 from Dimitar Dimitrov <dimitar at gcc dot gnu.org> --- (In reply to Dimitar Dimitrov from comment #4) > (In reply to H.J. Lu from comment #3) > > Created attachment 59055 [details] > > A patch > > > > Try this. > > Thanks. This fixes not only the attached reduced test, but also all the ABI > compat checks in GCC testsuite: > > $ find . -name site.exp | xargs rm -f > $ make check-gcc-c RUNTESTFLAGS="compat.exp struct-layout-1.exp" > COMPAT_OPTIONS="[list [list {-O2} {-O2}]]" ALT_CC_UNDER_TEST=`clang` > RUN_ALL_COMPAT_TESTS=1 > ... > === gcc Summary === > > # of expected passes 1335 > /home/dinux/projects/gnu/x86-build/gcc/xgcc version 15.0.0 20240902 > (experimental) (GCC) One clarification. Due to a typo (`clang` instead of `which clang`), the passing tests were executed against the built GCC compiler and not clang. The proposed patch is still fine - those tests used to fail before with the same setup.