another binutils-2.8.1 bug?
Paul Eggert
eggert@twinsun.com
Sun Jan 11 00:31:00 GMT 1998
From: hjl@lucon.org (H.J. Lu)
Date: Sat, 10 Jan 1998 13:45:43 -0800 (PST)
> Evidently, if you change a static function into a non-static function,
> but the static prototype is left floating around, GCC converts the
> function to a static automatically, which seems rather dangerous.
I don't know what ANSI C says on it.
ANSI C requires that behavior.
It might be nice if GCC warned about the situation, but I don't think
it's dangerous all that often. All that happens is that the function
is unexpectedly static, which normally just leads to a link error.
More information about the Gcc
mailing list