Previous workaround was dangerous, this one is more sane. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100801#c3