From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Eggert To: hjl@lucon.org Cc: tm@netcom.com, gcc2@cygnus.com, egcs@cygnus.com Subject: Re: another binutils-2.8.1 bug? Date: Sun, 11 Jan 1998 00:31:00 -0000 Message-id: <199801110627.WAA17951@shade.twinsun.com> References: X-SW-Source: 1998-01/msg00273.html 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.