Simon Marlow wrote:
Manuel M T Chakravarty wrote:
On Mac OS X 10.5, I am getting the appended warnings that break
validate (since yesterday).
I'm not able to repeat this with the versions of gcc I have installed,
and from reading the gcc docs it seems I'm doing the right thing.
It seems that for some odd reason Apple's gcc (versions 4.0.1 and 4.2.1)
defines __GNUC_GNU_INLINE__ but doesn't actually support
__attribute__((gnu_inline)).
FSF's gcc added the macro together with the attribute in their version
4.1.3.
According to [1], this seems to be an acceptable workaround:
#if defined(__GNUC_GNU_INLINE__)
# if defined(KEEP_INLINES)
# define EXTERN_INLINE inline
# elif defined (__APPLE__)
# define EXTERN_INLINE extern inline
# else
# define EXTERN_INLINE extern inline __attribute__((gnu_inline))
# endif
#else
# if defined(KEEP_INLINES)
# define EXTERN_INLINE
# else
# define EXTERN_INLINE INLINE_HEADER
# endif
#endif
validates fine with this change on an intel mac.
d~
[1] http://www.mail-archive.com/[EMAIL PROTECTED]/msg00936.html
_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc