This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: another binutils-2.8.1 bug?


   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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]