https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95413
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- (In reply to H.J. Lu from comment #1) > > I strongly suspect the CET patches, but haven't yet figured out what's going > > wrong. > > How did CET changes add -march=i486 -mtune=i686? Can you bisect to the > commit? -march=i486 -mtune=i686 is something added by libgomp/configure.tgt: # Note that bare i386 is not included here. We need cmpxchg. i[456]86-*-linux*) config_path="linux/x86 linux posix" case " ${CC} ${CFLAGS} " in *" -m64 "*|*" -mx32 "*) ;; *) if test -z "$with_arch"; then XCFLAGS="${XCFLAGS} -march=i486 -mtune=${target_cpu}" fi esac ;; But that should enable it only when building the 32-bit libgomp and not 32-bit. So something else must be adding -m64 somewhere later.