https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100407
Alan Modra <amodra at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |amodra at gmail dot com --- Comment #13 from Alan Modra <amodra at gmail dot com> --- All of the following result in the tests passing. make check-gcc RUNTESTFLAGS="--target_board=unix/-m32/-mno-readonly-in-sdata compile.exp=attr-retain-1.c" make check-gcc RUNTESTFLAGS="--target_board=unix/-m32/-mno-sdata compile.exp=attr-retain-1.c" make check-gcc RUNTESTFLAGS="--target_board=unix/-m32/-G0 compile.exp=attr-retain-1.c" The tests just need tweaking for ppc32 using any of the above, I'd choose -G0.