toolchain/gcc: correct the check expr for newer clang