This is the mail archive of the gcc-patches@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: [Solaris 8/Intel] cc chokes on inline static


Rainer Orth wrote:
> David Korn writes:
> 
> >   Isn't inline the sort of non-K+R-backwardly-compatible thing that isn't
> > meant to be used in any of the bootstrap compiler files?  Or is that taken
> > care of by #defineing it to a blank macro in one of the header files?
> 
> no, this is taken care of by AC_C_INLINE in configure.in: it defines inline
> to __inline or nothing if that's what the bootstrap compiler supports, and
> leaves it as is (i.e. undefined) if the bootstrap compiler supports it as is.

It's also worth mentioning that vendor compilers are starting to ship
with C99 present and enabled by default.  (The original bug report
referenced a rather new version of Sun's compiler.)  C99's inline and
GNU C's inline are similar enough that sometimes the autoconf tests will
pass but different enough that the builds will fail in Real Life.

Unfortunately, when autoconf sets HAVE_INLINE, it really means
HAVE_GCC_INLINE and not HAVE_C99_INLINE.

RJL


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