All of lore.kernel.org
 help / color / mirror / Atom feed
* any value to numerous checks of "#ifdef __GNUC__"?
@ 2008-04-04 13:18 Robert P. J. Day
  2008-04-04 14:44 ` walter harms
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Robert P. J. Day @ 2008-04-04 13:18 UTC (permalink / raw)
  To: kernel-janitors


  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
--

====================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry:
    Have classroom, will lecture.

http://crashcourse.ca                          Waterloo, Ontario, CANADA
====================================

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-04-05 12:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-04 13:18 any value to numerous checks of "#ifdef __GNUC__"? Robert P. J. Day
2008-04-04 14:44 ` walter harms
2008-04-04 15:21 ` Robert P. J. Day
2008-04-04 15:28 ` Robert P. J. Day
2008-04-05  1:05 ` Darren Jenkins
2008-04-05 12:26 ` Robert P. J. Day

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.