From a745c4bfc8a9b5db4e48387170da0dc1d39e3abe Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Tue, 7 Nov 2017 20:50:27 +0100 Subject: remove unused FORTIFY code fragments --- include/features.h | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'include/features.h') diff --git a/include/features.h b/include/features.h index 7dc913f33..4a1066531 100644 --- a/include/features.h +++ b/include/features.h @@ -207,9 +207,8 @@ /* disable unsupported features */ # undef __LDBL_COMPAT -# ifndef __UCLIBC_HAS_FORTIFY__ -# undef _FORTIFY_SOURCE -# endif +/* no support for FORTIFY */ +# undef _FORTIFY_SOURCE # ifndef __UCLIBC_HAS_THREADS__ # if defined _REENTRANT || defined _THREAD_SAFE @@ -352,17 +351,6 @@ # define __USE_REENTRANT 1 #endif -#if defined _FORTIFY_SOURCE && _FORTIFY_SOURCE > 0 \ - && __GNUC_PREREQ (4, 1) && defined __OPTIMIZE__ && __OPTIMIZE__ > 0 -# if _FORTIFY_SOURCE > 1 -# define __USE_FORTIFY_LEVEL 2 -# else -# define __USE_FORTIFY_LEVEL 1 -# endif -#else -# define __USE_FORTIFY_LEVEL 0 -#endif - /* We do support the IEC 559 math functionality, real and complex. */ #ifdef __UCLIBC_HAS_FLOATS__ #define __STDC_IEC_559__ 1 -- cgit v1.2.3