lkml.org 
[lkml]   [2008]   [Jun]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH 2/6] kernel: introduce GCC_VERSION_LOWER macro
From: Peter Oberparleiter <peter.oberparleiter@de.ibm.com>

Use GCC_VERSION_LOWER() to check for gcc versions below a certain level.

Signed-off-by: Peter Oberparleiter <peter.oberparleiter@de.ibm.com>
---
include/linux/compiler-gcc.h | 3 +++
1 file changed, 3 insertions(+)

Index: linux-2.6.26-rc4/include/linux/compiler-gcc.h
===================================================================
--- linux-2.6.26-rc4.orig/include/linux/compiler-gcc.h
+++ linux-2.6.26-rc4/include/linux/compiler-gcc.h
@@ -6,6 +6,9 @@
* Common definitions for all gcc versions go here.
*/

+#define GCC_VERSION_LOWER(major, minor) ((__GNUC__ < major) || \
+ (__GNUC__ == major) && \
+ (__GNUC_MINOR__ < minor))

/* Optimization barrier */
/* The "volatile" is due to gcc bugs */



\
 
 \ /
  Last update: 2008-06-02 15:39    [W:0.028 / U:0.888 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site