GCC simplify the weak annotation