lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <4843F6D2.6020606@de.ibm.com>
Date:	Mon, 02 Jun 2008 15:34:10 +0200
From:	Peter Oberparleiter <peter.oberparleiter@...ibm.com>
To:	linux-kernel@...r.kernel.org
CC:	ltp-coverage@...ts.sourceforge.net,
	Andrew Morton <akpm@...ux-foundation.org>,
	Peter Oberparleiter <oberparleiter@...glemail.com>
Subject: [PATCH 2/6] kernel: introduce GCC_VERSION_LOWER macro

From: Peter Oberparleiter <peter.oberparleiter@...ibm.com>

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

Signed-off-by: Peter Oberparleiter <peter.oberparleiter@...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 */


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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ