toolchain/gcc: revert a faulty upstream commit that caused miscompiled code