Guidance please: static or extern __inline__

Mike Stump mrs@apple.com
Thu Jul 28 19:05:00 GMT 2005


On Jul 28, 2005, at 9:12 AM, Kean Johnston wrote:
>   extern int stat (const char *__p, stat_t *__s);
>   extern __inline__ int
>   stat(const char *__p, stat_t *__s)
>   {
>     return _xstat(_STAT_VER, __p, __s);
>   }
>

> However, it caused a problem bootstrapping the compiler, becuase  
> the first stage doesn't have -O, so any calls to stat() actually go  
> to the library routine called stat(), which is an old, deprecated  
> stat that can't deal

[ cough ] "always_inline" [ cough ]



More information about the Gcc mailing list