This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Solaris 8/Intel] cc chokes on inline static
- To: robertlipe at usa dot net
- Subject: Re: [Solaris 8/Intel] cc chokes on inline static
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Wed, 25 Apr 2001 18:36:46 -0400 (EDT)
- Cc: dkorn at pixelpower dot com, gcc-patches at gcc dot gnu dot org, jsm28 at cam dot ac dot uk, ro at TechFak dot Uni-Bielefeld dot DE
> 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