From: Peter Oberparleiter <peter.oberparleiter@de.ibm.com>
To: linux-kernel@vger.kernel.org
Cc: ltp-coverage@lists.sourceforge.net,
Andrew Morton <akpm@linux-foundation.org>,
Peter Oberparleiter <oberparleiter@googlemail.com>
Subject: [PATCH 2/7] kernel: introduce GCC_VERSION_LOWER macro
Date: Mon, 19 May 2008 10:43:32 +0200 [thread overview]
Message-ID: <48313DB4.8000102@de.ibm.com> (raw)
From: Peter Oberparleiter <peter.oberparleiter@de.ibm.com>
GCC_VERSION_LOWER() can be used 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-rc3/include/linux/compiler-gcc.h
===================================================================
--- linux-2.6.26-rc3.orig/include/linux/compiler-gcc.h
+++ linux-2.6.26-rc3/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 */
reply other threads:[~2008-05-19 8:43 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48313DB4.8000102@de.ibm.com \
--to=peter.oberparleiter@de.ibm.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=ltp-coverage@lists.sourceforge.net \
--cc=oberparleiter@googlemail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox