Fixed GCC implementation