x86: Work around compiler code generation bug with -Os