From nobody Sat Apr 20 10:32:20 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 4VM79x2tWsz5HW4q; Sat, 20 Apr 2024 10:32:21 +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 4VM79w6cvrz4PQ1; Sat, 20 Apr 2024 10:32:20 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713609140; 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=RigoxpQpOhM0L34CuIHd+ma7Xh071h6HrLMFQGplW+E=; b=eaGPm7MLO9ICr7INwCVNMgxExqBueb0wsu/Ow3u5HRXOCmE3qAzWYf9SxV4qHXjG+GZbBu mR8MxuOhzMBiSJP5Wqq2d1oveJYpHeeYpC1iNFj5JKRrQn+K4B1bplBD/g5gZlPaVIjxhM C/RKevuEKSFbFUnib2vnhZFo96Dd2AoSTa7D76y4GFjHBnnvzbXs6chgAR2mZVZicR2wFE 89Sw6alGNWw3Y/Im/OG7K9aNEOhDuzbjrtNdQfxbV7UQwJuqw3xcwX/k5aw02+KMOIP7SQ Ts55Bm89bwmizjNliOL0Lbr6hfvxvo9JyXtthMwF+EoNat1IgngroBPnM9zs9Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1713609140; a=rsa-sha256; cv=none; b=csroTP+stwQSBQS5bYdSpNHMklhWVDC/v4QPDafxY91NMP257a59NjWNriGrTv6Cy/ebN4 NQ495OisCoeDOLfzRvwooqruX6VDH1e3/7LbTD74vOXSR2KHuZotT4SdsmXcW5qwwDVNOs 377XfuJemWGq+XX1EdTzOJ5Nzkzop4E/YG0oRkpO2f1GvJeyICW5rUu75CLgUXUwQC7Axu tWD3jfzFf+hlmly7iHpq39lSXzLozv1pvCwpc3QH1e0lLZQ/9gYTkdv887MWMDctXhRfn8 qfyYebKIhWoNYQkqEmPgA6e2Xqcl9SqZPWo4/xLwLfo8reJPBSsnWb0lGv52HQ== 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=1713609140; 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=RigoxpQpOhM0L34CuIHd+ma7Xh071h6HrLMFQGplW+E=; b=gcisImj+qO9XPWiyOtVs80yCW/y2AFd5IE1y3rQ7B1JbN9L3fbu0pTkTW10ZvxRTy2k7Ie sTCFAGWzzRo73ijgKVH4ivUK0eIgt2xJTA++hm+7Z25LM9yaIAuFOoSmTiqhSzr1gLE+uF o6lrPO2BvGf8lWAg7QsLy9KKAILBcUD/GriSNlaMDiJvUsYuUKoSbe7Kgj+eqe6bBogF4d T4OKq4nU2H2LjgEbee9OfDRrjAbkmTUddGlOV2iBy/jZ4XF36UvEXUVtlklslo2q/JpUOd WOPcKUSUzyIlNpjVp8E9SWkmMLcHeSybAclTkdjBvyLgsqIXfGO9kJnSov+zCA== 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 4VM79w5wNyzYm6; Sat, 20 Apr 2024 10:32:20 +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 43KAWKCg009691; Sat, 20 Apr 2024 10:32:20 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 43KAWKd3009688; Sat, 20 Apr 2024 10:32:20 GMT (envelope-from git) Date: Sat, 20 Apr 2024 10:32:20 GMT Message-Id: <202404201032.43KAWKd3009688@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: c8734e140f63 - stable/14 - 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/14 X-Git-Reftype: branch X-Git-Commit: c8734e140f632b76ff5e638afcde7258bd688d2f Auto-Submitted: auto-generated The branch stable/14 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=c8734e140f632b76ff5e638afcde7258bd688d2f commit c8734e140f632b76ff5e638afcde7258bd688d2f Author: Dimitry Andric AuthorDate: 2024-01-14 13:20:42 +0000 Commit: Dimitry Andric CommitDate: 2024-04-19 21:14:12 +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;