[Solaris 8/Intel] cc chokes on inline static

Kaveh R. Ghazi ghazi@caip.rutgers.edu
Wed Apr 25 15:37:00 GMT 2001


 > 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



More information about the Gcc-patches mailing list