From nobody Sat Apr 20 10:34:27 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VM7DN04v7z5HWTN; Sat, 20 Apr 2024 10:34:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VM7DM2PPmz4SMx; Sat, 20 Apr 2024 10:34:27 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713609267; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=oIkZBqFAx1X3TiUDPH7HzRm/A8jikwiVRa3VqRNhlIQ=; b=HPzI/vgmZouFRlJI5u8gIW+cyE1P9jDOrPyceob0YXxyRAb2gIs8fQVfrVSsbwVoCTfXUd XF7f3mP7k/RH9wnClVpm0b/32A0f9Daj+RYZ/3WkeFUyw4oHlN7PRQ0OGdklsPZud0b3s8 fdo4f666KEmtYscqkSxAP7C2DempQMhjswUUx3cfWu5h0nxmrbIWMiqGR52Ckuo+6zJIR+ kIYiQw/eO9lP55So3HDcHJzyar9kSevRj7MpsWKikYNTVx8BEgpkrXsJGSLZDIwbeRwWOJ xT62JTMNXl+0V/2lOLjWC22yu44nnMoTY1/+Xed4NCm0OCgHLvlH/s/RTDCZiA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1713609267; a=rsa-sha256; cv=none; b=IE9U9xM6KPsZNoTorLDVSrmz+X3q/XVb5nW8SzIUCLdlJzclFVP/B6shgP91uSsHVLn/B9 3pOPsVU8IHpg47Zv7GLexakuKGgcvkAzPldulCLzFGOvoaU2yEykFVGzxQz1tNUZHBns8i MCgEUv20FlSti8PMqhDyc/fSjxYZwOHQs7wKfz+fUJQ0dfViESUnX5nIJi5g53XKySR1EE WItqKijcacEp2Jk7PUQWgyz5Btl+uVubFvTLOpu7+bJ45eBTPE+lZfYJW6LK2Io3BmYPao Q7fNXkjEV3gQ6qZ9m/AC/T/FqPxQpRHNe23cqJkDNmy7jKXsVlfu2T1kSNVR7w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713609267; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=oIkZBqFAx1X3TiUDPH7HzRm/A8jikwiVRa3VqRNhlIQ=; b=tR2tSUxZTL00TSp6erczbbdUkwVHCDp+eOKoqSW1vjS4SxjqE41P0ROdBFJ6IFcy1rLMqa uled5/H/sOov1d69sXLbNbTin7WTFoLC+XLJ+xfve2LtXJ986/6KvrZ2etUpGog0Fu/eAi rW91D7LSzUP1wwH9pq6SUyLnmIhmTQfKyw/VmPrEjdAe60RoT6AftD7ZWFylZwaVjy5NVo qUtriA9cZHJO0ObKiREz4lRF6/+lyg6MwRajt+TG0XzSfZ84cv4b2dgGECzPQKzFk0pIII +vcgPQm4XBDaoaEydHzUbPZ1K8LXGghNO8rNdH+mjJP2lQSTpTsac1tv/hcWnw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4VM7DM1zQPzYkg; Sat, 20 Apr 2024 10:34:27 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 43KAYReB013582; Sat, 20 Apr 2024 10:34:27 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 43KAYRpM013579; Sat, 20 Apr 2024 10:34:27 GMT (envelope-from git) Date: Sat, 20 Apr 2024 10:34:27 GMT Message-Id: <202404201034.43KAYRpM013579@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 412542983a5b - stable/13 - Redo libc++ customizations List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 412542983a5ba62902141a8a7e155cceb9196a66 Auto-Submitted: auto-generated The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=412542983a5ba62902141a8a7e155cceb9196a66 commit 412542983a5ba62902141a8a7e155cceb9196a66 Author: Dimitry Andric AuthorDate: 2024-01-14 13:20:42 +0000 Commit: Dimitry Andric CommitDate: 2024-04-19 21:24:43 +0000 Redo libc++ customizations * Remove osreldate include because _LIBCPP_HAS_NO_GETS has disappeared * Instead, add direct major __FreeBSD__ check for using ::gets declaration * Mark EINTEGRITY values as FreeBSD customization * Reformat _LIBCPP_TYPE_VISIBILITY_DEFAULT customization PR: 276104 MFC after: 1 month (cherry picked from commit 46c59ea9b61755455ff6bf9f3e7b834e1af634ea) --- contrib/llvm-project/libcxx/include/__config | 8 ++------ contrib/llvm-project/libcxx/include/__system_error/errc.h | 4 ++-- contrib/llvm-project/libcxx/include/cstdio | 2 +- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/contrib/llvm-project/libcxx/include/__config b/contrib/llvm-project/libcxx/include/__config index ce4cece198b1..9154be8d8577 100644 --- a/contrib/llvm-project/libcxx/include/__config +++ b/contrib/llvm-project/libcxx/include/__config @@ -486,10 +486,6 @@ _LIBCPP_HARDENING_MODE_DEBUG # include // for __NATIVE_ASCII_F # endif -# ifdef __FreeBSD__ -# include // for __FreeBSD_version -# endif - # ifndef __BYTE_ORDER__ # error \ "Your compiler doesn't seem to define __BYTE_ORDER__, which is required by libc++ to know the endianness of your target platform" @@ -734,8 +730,8 @@ typedef __char32_t char32_t; # define _LIBCPP_TEMPLATE_VIS # endif -# if !defined(_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS) && __has_attribute(__type_visibility__) \ - && _LIBCPP_CLANG_VER >= 1500 // FreeBSD customization +# if !defined(_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS) && __has_attribute(__type_visibility__) && \ + _LIBCPP_CLANG_VER >= 1500 // FreeBSD customization # define _LIBCPP_TYPE_VISIBILITY_DEFAULT __attribute__((__type_visibility__("default"))) # else # define _LIBCPP_TYPE_VISIBILITY_DEFAULT diff --git a/contrib/llvm-project/libcxx/include/__system_error/errc.h b/contrib/llvm-project/libcxx/include/__system_error/errc.h index a14ec56070c4..b0cdacc5ec1d 100644 --- a/contrib/llvm-project/libcxx/include/__system_error/errc.h +++ b/contrib/llvm-project/libcxx/include/__system_error/errc.h @@ -45,7 +45,7 @@ enum class errc identifier_removed, // EIDRM illegal_byte_sequence, // EILSEQ inappropriate_io_control_operation, // ENOTTY - integrity_check_failed, // EINTEGRITY + integrity_check_failed, // EINTEGRITY // FreeBSD customization interrupted, // EINTR invalid_argument, // EINVAL invalid_seek, // ESPIPE @@ -143,7 +143,7 @@ _LIBCPP_DECLARE_STRONG_ENUM(errc){ illegal_byte_sequence = EILSEQ, inappropriate_io_control_operation = ENOTTY, #ifdef EINTEGRITY - integrity_check_failed = EINTEGRITY, + integrity_check_failed = EINTEGRITY, // FreeBSD customization #endif interrupted = EINTR, invalid_argument = EINVAL, diff --git a/contrib/llvm-project/libcxx/include/cstdio b/contrib/llvm-project/libcxx/include/cstdio index 0a867cec1a38..383655036d5f 100644 --- a/contrib/llvm-project/libcxx/include/cstdio +++ b/contrib/llvm-project/libcxx/include/cstdio @@ -159,7 +159,7 @@ using ::tmpfile _LIBCPP_USING_IF_EXISTS; using ::tmpnam _LIBCPP_USING_IF_EXISTS; using ::getchar _LIBCPP_USING_IF_EXISTS; -#if _LIBCPP_STD_VER <= 11 +#if _LIBCPP_STD_VER <= 11 && !(defined(__FreeBSD__) && __FreeBSD__ >= 13) // FreeBSD customization using ::gets _LIBCPP_USING_IF_EXISTS; #endif using ::scanf _LIBCPP_USING_IF_EXISTS;