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]
Other format: [Raw text]

Re: Guidance please: static or extern __inline__


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 ]



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