Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/include/ssp SSP mostly works with Clang, even if optimisatio...
details: https://anonhg.NetBSD.org/src/rev/aa8d014019d0
branches: trunk
changeset: 780837:aa8d014019d0
user: joerg <joerg%NetBSD.org@localhost>
date: Wed Aug 08 20:23:32 2012 +0000
description:
SSP mostly works with Clang, even if optimisation is disabled.
Explicitly disable it for Lint though.
diffstat:
include/ssp/ssp.h | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (19 lines):
diff -r 82336f8b827a -r aa8d014019d0 include/ssp/ssp.h
--- a/include/ssp/ssp.h Wed Aug 08 20:21:03 2012 +0000
+++ b/include/ssp/ssp.h Wed Aug 08 20:23:32 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ssp.h,v 1.9 2011/02/21 00:40:08 joerg Exp $ */
+/* $NetBSD: ssp.h,v 1.10 2012/08/08 20:23:32 joerg Exp $ */
/*-
* Copyright (c) 2006, 2011 The NetBSD Foundation, Inc.
@@ -34,7 +34,8 @@
#include <sys/cdefs.h>
#if !defined(__cplusplus)
-# if _FORTIFY_SOURCE > 0 && __OPTIMIZE__ > 0 && __GNUC_PREREQ__(4, 1)
+# if _FORTIFY_SOURCE > 0 && !defined(__lint__) && \
+ (__OPTIMIZE__ > 0 || defined(__clang__)) && __GNUC_PREREQ__(4, 1)
# if _FORTIFY_SOURCE > 1
# define __SSP_FORTIFY_LEVEL 2
# else
Home |
Main Index |
Thread Index |
Old Index