Author: imp
Date: Sat Oct 24 23:21:06 2020
New Revision: 367028
URL: https://svnweb.freebsd.org/changeset/base/367028

Log:
  Remove obsolete check for GCC < 3 and support for Intel Compiler
  
  We no longer support old versions of GCC. Remove this check by
  assuming it's false. That will make the entire expression false.  Also
  remove support for Intel compiler, it's badly bitrotted.  Technically,
  this removes support for C89 and K&R from compilers that don't define
  _Bool in those compilation environments as well. I'm unaware of any
  working compiler today for which that would be relevant (pcc has it
  and tcc sadly isn't working for other reasons), though if one
  pops up in ports, I'll work to resolve the issue.

Modified:
  head/include/stdbool.h
  head/include/stdlib.h
  head/sys/sys/types.h

Modified: head/include/stdbool.h
==============================================================================
--- head/include/stdbool.h      Sat Oct 24 22:52:29 2020        (r367027)
+++ head/include/stdbool.h      Sat Oct 24 23:21:06 2020        (r367028)
@@ -37,9 +37,6 @@
 #define        true    1
 
 #define        bool    _Bool
-#if __STDC_VERSION__ < 199901L && __GNUC__ < 3 && !defined(__INTEL_COMPILER)
-typedef        int     _Bool;
-#endif
 
 #endif /* !__cplusplus */
 #endif /* __bool_true_false_are_defined */

Modified: head/include/stdlib.h
==============================================================================
--- head/include/stdlib.h       Sat Oct 24 22:52:29 2020        (r367027)
+++ head/include/stdlib.h       Sat Oct 24 23:21:06 2020        (r367028)
@@ -253,7 +253,7 @@ extern void (*malloc_message)(void *, const char *);
  * On platforms where alloca() is not in libc, programs which use it
  * will fail to link when compiled with non-GNU compilers.
  */
-#if __GNUC__ >= 2 || defined(__INTEL_COMPILER)
+#if __GNUC__ >= 2
 #undef  alloca /* some GNU bits try to get cute and define this on their own */
 #define alloca(sz) __builtin_alloca(sz)
 #endif

Modified: head/sys/sys/types.h
==============================================================================
--- head/sys/sys/types.h        Sat Oct 24 22:52:29 2020        (r367027)
+++ head/sys/sys/types.h        Sat Oct 24 23:21:06 2020        (r367028)
@@ -300,9 +300,6 @@ typedef     struct vm_page  *vm_page_t;
 #define        __bool_true_false_are_defined   1
 #define        false   0
 #define        true    1
-#if __STDC_VERSION__ < 199901L && __GNUC__ < 3 && !defined(__INTEL_COMPILER)
-typedef        int     _Bool;
-#endif
 typedef        _Bool   bool;
 #endif /* !__bool_true_false_are_defined && !__cplusplus */
 #endif /* KERNEL || _STANDALONE */
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to