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


 > From: Robert Lipe <robertlipe@usa.net> 
 > 
 > 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

 > -inline static int
 > +static inline int

What does c99 say with respect to ordering of static vs inline (and
related tokens?)  Perhaps it should be warned about with -pedantic.

(Note -W already warns about "int static" vs "static int".)

Joseph, want to take a wack at this one?

		--Kaveh
--
Kaveh R. Ghazi			Engagement Manager / Project Services
ghazi@caip.rutgers.edu		Qwest Internet Solutions


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