Re: any value to numerous checks of "#ifdef __GNUC__"?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Robert P. J. Day wrote:
>   there are numerous header files that contain a check of the form
> 
>     #ifdef __GNUC__
> 
> but <linux/compiler.h> already insists on a GNU C-flavoured compiler:
> 
> #if __GNUC__ >= 4
> # include <linux/compiler-gcc4.h>
> #elif __GNUC__ == 3 && __GNUC_MINOR__ >= 2
> # include <linux/compiler-gcc3.h>
> #else
> # error Sorry, your compiler is too old/not recognized.
> #endif
> 
>   so is there any point in keeping all those checks around?  is it
> even remotely feasible that the kernel might someday support a non-GNU
> C compiler, given the numerous gcc extensions that are used?
> 
> rday
> --
> 

hi,
so far i know the intel compiler can compile a linux kernel.
ntl. this is most likely crap since the compiler is checked much more early.
(or at least should).
I only reason i can think of is that this module is used in other places outside
the linux kernle tree.

re,
 wh






--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux