Re: [PATCH] 2.5.21 kill warnings 4/19

From: Andrew Morton (akpm@zip.com.au)
Date: Mon Jun 10 2002 - 14:51:44 EST


Tom Rini wrote:
>
> ...
> This reminds me of another slightly annoying issue. At least for
> toolchains, Documentation/Changes works poorly for !i386. How about we
> try and take care of things like this in <linux/compiler.h> ?
> Eg:
>
> #if defined(CONFIG_SPARC) || defined(CONFIG_SPARC64)
> ... egcs 1.1.2 check ...
>
> #define __func__ __FUNCTION__
> #endif
>
> #if defined(CONFIG_X86) || ...
> ... gcc-2.95.3 check ...
> #endif
>

That won't work very well - if SPARC wants 2.91.66 then
we need to support that compiler on x86 as well. So that
people won't use later-supported compiler features. And
because many compiler bugs are platform-independent, so
they will be detected (and worked around) on x86.

wrt the __func__ thing: is it possible to do:

#if (compiler version test)
#define __FUNCTION__ __func__
#endif

to kill the 3.x warning?

-
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Jun 15 2002 - 22:00:19 EST