From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1921) id ECFB33858412; Mon, 11 Jul 2022 09:53:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org ECFB33858412 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Sebastian Huber To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] cdefs.h: remove intel_compiler support X-Act-Checkin: newlib-cygwin X-Git-Author: Warner Losh X-Git-Refname: refs/heads/master X-Git-Oldrev: 421dcf72fb02bda019e311dbe18a41b9bc9cd56b X-Git-Newrev: c382ecde557556646242cb37614d17219be5a318 Message-Id: <20220711095332.ECFB33858412@sourceware.org> Date: Mon, 11 Jul 2022 09:53:32 +0000 (GMT) X-BeenThere: newlib-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Newlib GIT logs List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jul 2022 09:53:33 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3Dc382ecde557= 556646242cb37614d17219be5a318 commit c382ecde557556646242cb37614d17219be5a318 Author: Warner Losh Date: Sat Oct 24 23:21:31 2020 +0000 cdefs.h: remove intel_compiler support =20 The age of the intel compiler support is so old as to be uninteresting. No recent recports of intel compiler support have been received. Remove all the special case workarounds for the Intel compiler. Should there be interest in supporting the compiler, contact me and I'll work with people to make it happen, though I suspect these instances are more likely to be in the way than to be helpful. =20 Reviewed by: cem, emaste, vangyzen, dim Differential Revision: https://reviews.freebsd.org/D26817 Diff: --- newlib/libc/include/sys/cdefs.h | 34 ++++++++++++---------------------- 1 file changed, 12 insertions(+), 22 deletions(-) diff --git a/newlib/libc/include/sys/cdefs.h b/newlib/libc/include/sys/cdef= s.h index da7290921..e6a31bd51 100644 --- a/newlib/libc/include/sys/cdefs.h +++ b/newlib/libc/include/sys/cdefs.h @@ -101,9 +101,9 @@ * having a compiler-agnostic source tree. */ =20 -#if defined(__GNUC__) || defined(__INTEL_COMPILER) +#if defined(__GNUC__) =20 -#if __GNUC__ >=3D 3 || defined(__INTEL_COMPILER) +#if __GNUC__ >=3D 3 #define __GNUCLIKE_ASM 3 #define __GNUCLIKE_MATH_BUILTIN_CONSTANTS #else @@ -113,15 +113,9 @@ #define __GNUCLIKE___OFFSETOF 1 #define __GNUCLIKE___SECTION 1 =20 -#ifndef __INTEL_COMPILER #define __GNUCLIKE_CTOR_SECTION_HANDLING 1 -#endif =20 #define __GNUCLIKE_BUILTIN_CONSTANT_P 1 -#if defined(__INTEL_COMPILER) && defined(__cplusplus) && \ - __INTEL_COMPILER < 800 -#undef __GNUCLIKE_BUILTIN_CONSTANT_P -#endif =20 #if (__GNUC_MINOR__ > 95 || __GNUC__ >=3D 3) #define __GNUCLIKE_BUILTIN_VARARGS 1 @@ -140,10 +134,8 @@ #define __compiler_membar() __asm __volatile(" " : : : "memory") #endif =20 -#ifndef __INTEL_COMPILER #define __GNUCLIKE_BUILTIN_NEXT_ARG 1 #define __GNUCLIKE_MATH_BUILTIN_RELOPS -#endif =20 #define __GNUCLIKE_BUILTIN_MEMCPY 1 =20 @@ -159,7 +151,7 @@ =20 #define __CC_SUPPORTS_DYNAMIC_ARRAY_INIT 1 =20 -#endif /* __GNUC__ || __INTEL_COMPILER */ +#endif /* __GNUC__ */ =20 /* * The __CONCAT macro is used to concatenate parts of symbol names, e.g. @@ -228,18 +220,18 @@ * a feature that we cannot live without. */ #define __weak_symbol __attribute__((__weak__)) -#if !__GNUC_PREREQ__(2, 5) && !defined(__INTEL_COMPILER) +#if !__GNUC_PREREQ__(2, 5) #define __dead2 #define __pure2 #define __unused #endif -#if __GNUC__ =3D=3D 2 && __GNUC_MINOR__ >=3D 5 && __GNUC_MINOR__ < 7 && !d= efined(__INTEL_COMPILER) +#if __GNUC__ =3D=3D 2 && __GNUC_MINOR__ >=3D 5 && __GNUC_MINOR__ < 7 #define __dead2 __attribute__((__noreturn__)) #define __pure2 __attribute__((__const__)) #define __unused /* XXX Find out what to do for __packed, __aligned and __section */ #endif -#if __GNUC_PREREQ__(2, 7) || defined(__INTEL_COMPILER) +#if __GNUC_PREREQ__(2, 7) #define __dead2 __attribute__((__noreturn__)) #define __pure2 __attribute__((__const__)) #define __unused __attribute__((__unused__)) @@ -376,7 +368,7 @@ #define __pure #endif =20 -#if __GNUC_PREREQ__(3, 1) || (defined(__INTEL_COMPILER) && __INTEL_COMPILE= R >=3D 800) +#if __GNUC_PREREQ__(3, 1) #define __always_inline __inline__ __attribute__((__always_inline__)) #else #define __always_inline @@ -417,7 +409,7 @@ #endif =20 /* XXX: should use `#if __STDC_VERSION__ < 199901'. */ -#if !__GNUC_PREREQ__(2, 7) && !defined(__INTEL_COMPILER) +#if !__GNUC_PREREQ__(2, 7) #define __func__ NULL #endif =20 @@ -512,7 +504,7 @@ * that are known to support the features properly (old versions of gcc-2 * didn't permit keeping the keywords out of the application namespace). */ -#if !__GNUC_PREREQ__(2, 7) && !defined(__INTEL_COMPILER) +#if !__GNUC_PREREQ__(2, 7) #define __printflike(fmtarg, firstvararg) #define __scanflike(fmtarg, firstvararg) #define __format_arg(fmtarg) @@ -532,18 +524,16 @@ =20 /* Compiler-dependent macros that rely on FreeBSD-specific extensions. */ #if defined(__FreeBSD_cc_version) && __FreeBSD_cc_version >=3D 300001 && \ - defined(__GNUC__) && !defined(__INTEL_COMPILER) + defined(__GNUC__) #define __printf0like(fmtarg, firstvararg) \ __attribute__((__format__ (__printf0__, fmtarg, firstvararg))) #else #define __printf0like(fmtarg, firstvararg) #endif =20 -#if defined(__GNUC__) || defined(__INTEL_COMPILER) -#ifndef __INTEL_COMPILER +#if defined(__GNUC__) #define __strong_reference(sym,aliassym) \ extern __typeof (sym) aliassym __attribute__ ((__alias__ (#sym))) -#endif #ifdef __ELF__ #ifdef __STDC__ #define __weak_reference(sym,alias) \ @@ -587,7 +577,7 @@ __asm__(".stabs \"_/**/sym\",1,0,0,0") #endif /* __STDC__ */ #endif /* __ELF__ */ -#endif /* __GNUC__ || __INTEL_COMPILER */ +#endif /* __GNUC__ */ =20 #ifndef __FBSDID #define __FBSDID(s) struct __hack