gcc simplify the weak annotation