From owner-svn-src-head@freebsd.org Wed Jul 25 00:06:19 2018 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B0E421059A02; Wed, 25 Jul 2018 00:06:19 +0000 (UTC) (envelope-from emaste@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 640D985D2C; Wed, 25 Jul 2018 00:06:19 +0000 (UTC) (envelope-from emaste@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4531512B84; Wed, 25 Jul 2018 00:06:19 +0000 (UTC) (envelope-from emaste@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w6P06JmA068781; Wed, 25 Jul 2018 00:06:19 GMT (envelope-from emaste@FreeBSD.org) Received: (from emaste@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w6P06JAs068780; Wed, 25 Jul 2018 00:06:19 GMT (envelope-from emaste@FreeBSD.org) Message-Id: <201807250006.w6P06JAs068780@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: emaste set sender to emaste@FreeBSD.org using -f From: Ed Maste Date: Wed, 25 Jul 2018 00:06:19 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r336691 - head/lib/clang/include/llvm/Config X-SVN-Group: head X-SVN-Commit-Author: emaste X-SVN-Commit-Paths: head/lib/clang/include/llvm/Config X-SVN-Commit-Revision: 336691 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Jul 2018 00:06:19 -0000 Author: emaste Date: Wed Jul 25 00:06:18 2018 New Revision: 336691 URL: https://svnweb.freebsd.org/changeset/base/336691 Log: llvm: remove __FreeBSD_version conditionals All supported FreeBSD build host versions have backtrace.h, so we can just eliminate that test. For futimes() we can test the compiler's built-in __FreeBSD__ major version rather than relying on including osreldate.h. This should reduce the frequency with which Clang gets rebuilt when building world. Reviewed by: dim Sponsored by: The FreeBSD Foundation Modified: head/lib/clang/include/llvm/Config/config.h Modified: head/lib/clang/include/llvm/Config/config.h ============================================================================== --- head/lib/clang/include/llvm/Config/config.h Tue Jul 24 23:40:27 2018 (r336690) +++ head/lib/clang/include/llvm/Config/config.h Wed Jul 25 00:06:18 2018 (r336691) @@ -2,9 +2,6 @@ #ifndef CONFIG_H #define CONFIG_H -/* Get __FreeBSD_version. */ -#include - /* Exported configuration */ #include "llvm/Config/llvm-config.h" @@ -17,12 +14,10 @@ /* Define to 1 to enable crash overrides, and to 0 otherwise. */ #define ENABLE_CRASH_OVERRIDES 1 -#if __FreeBSD_version >= 1000052 /* Define to 1 if you have the `backtrace' function. */ #define HAVE_BACKTRACE TRUE #define BACKTRACE_HEADER -#endif /* Define to 1 if you have the header file. */ /* #undef HAVE_CRASHREPORTERCLIENT_H */ @@ -81,7 +76,7 @@ /* #undef HAVE_FFI_H */ /* Define to 1 if you have the `futimens' function. */ -#if __FreeBSD_version >= 1100056 +#if __FreeBSD__ >= 11 #define HAVE_FUTIMENS 1 #endif