From nobody Sat Feb 11 17:13:48 2023 X-Original-To: freebsd-hackers@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 4PDcdV4YCFz3pgBM for ; Sat, 11 Feb 2023 17:13:50 +0000 (UTC) (envelope-from theraven@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PDcdV41T5z4Jmn; Sat, 11 Feb 2023 17:13:50 +0000 (UTC) (envelope-from theraven@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676135630; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=phlCIFXv7OxSOsuPmRtD6Ny3VM/sCFvMIk1s6Edlizs=; b=MGSt9ZcHveN7hv6Mn/o5TRuMQckndVXQOIY6Ry1D3O/f3GaAlFOsdApQqBTQsCkMf2UHVD tcNG2NiVMkL+i16jkvNOO3OIySWJqC0ngCiev4xwo4zqfLfmy5AhCzF3+XBnO1yUxf49Nf VxFg4QwqXUlkX7is5///rN7GOzGtON1xb6iGXZsZvDU9OJz+sZYFZdwG0EpkKonf5vJJA5 b6dog1ZI3pd8S+u+IjfkDWMQk6FmGPEsWlFd/xsBj5fD+qm5ZF+yT7QILz35OWi6qZXZ2F cljb//8mVV6vmrJCJ+hHhC0JwSD/cuLlH7aB2ePga74iuTNbcdmIlHPbPaBfqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676135630; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=phlCIFXv7OxSOsuPmRtD6Ny3VM/sCFvMIk1s6Edlizs=; b=Kx/paIIjFo/MABybAsc5ul9SgF3iJtATwT6DRtoGKDv0P+C35kRW1F7FOny4Oyki7Cb664 xMzoXmAT7KLKghR1+GZL43TVIaGdkGpm9+EQIrBHoeVZeqpsGKhMyInuEwMnttsXbuSjLk arHbPoH8CUByvbyj/B1J2nEWrhL9MbfGeeChBQZuWG+znwjkh6NpqKMWPx/+Yjf9aZazsE GvDA4NVSAOEaSqmfyXubP0JpizFP3O0FaH+yQ4RUACS2P27dqeLXjbFvy44Ez92G9MpK4j xXbRQW9yu/PLqThScgKVUA9jz9ZMtNm59I4J0WIOEoaRfH83aD6uQshcRakHYw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676135630; a=rsa-sha256; cv=none; b=DX0Mh1fZqNKyr7y3TV8hqxnz9jYjHpK9rXEt2C7mei+OTgjH+FKFlFbNCFnu6zllvRh5vG I2uCxynWmHAFivwETTk5nbscc1IuyXfnCSPPkilIrpY2vJMVpy2N1tpJI/z+tjGVvMVb4j ZahvmAWGML+IAqPUppPI5U0vv+xzU4r5tlflkj40U3XyOOH+c3Qh6tyxURRWXDDS3VYxel 00fOP3xEzcZUMcNIZ9dmU8BMI05ryhMWs76d++NUvaKBeWO4dk06A3GCyVKCxSxCQQbxrU maIn9d042D+GPsiU2arv6R31b9hTr+xr9oW8jdk/MPJev+sGwnJ3AdvEu54z8Q== Received: from smtp.theravensnest.org (smtp.theravensnest.org [45.77.103.195]) (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) (Authenticated sender: theraven) by smtp.freebsd.org (Postfix) with ESMTPSA id 4PDcdV2wmmzNCc; Sat, 11 Feb 2023 17:13:50 +0000 (UTC) (envelope-from theraven@FreeBSD.org) Received: from smtpclient.apple (host81-158-36-31.range81-158.btcentralplus.com [81.158.36.31]) by smtp.theravensnest.org (Postfix) with ESMTPSA id C6A5F105D1; Sat, 11 Feb 2023 17:13:49 +0000 (GMT) Content-Type: text/plain; charset=utf-8 List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: CFT: snmalloc as libc malloc (the source_location issue) From: David Chisnall In-Reply-To: <96652C51-EAB7-46C7-9039-557A5DCDAB75@yahoo.com> Date: Sat, 11 Feb 2023 17:13:48 +0000 Cc: FreeBSD Hackers , shawn.webb@hardenedbsd.org, Dimitry Andric Content-Transfer-Encoding: quoted-printable Message-Id: References: <22F8AD1A-C1F9-48FA-BCED-E165E2DA5260@yahoo.com> <1982263E-57E0-4709-AAB3-DBB4F75C7546@yahoo.com> <96652C51-EAB7-46C7-9039-557A5DCDAB75@yahoo.com> To: Mark Millard X-Mailer: Apple Mail (2.3654.120.0.1.13) X-ThisMailContainsUnwantedMimeParts: N On 10 Feb 2023, at 21:34, Mark Millard wrote: >=20 > # find / -name source_location -print | more > = /usr/obj/DESTDIRs/main-amd64-chroot/usr/local/lib/gcc12/include/c++/experi= mental/source_location > = /usr/obj/DESTDIRs/main-amd64-chroot/usr/local/lib/gcc12/include/c++/source= _location > /usr/local/lib/gcc12/include/c++/experimental/source_location > /usr/local/lib/gcc12/include/c++/source_location >=20 > So, none for FreeBSD and its llvm15. >=20 > This makes sense, https://libcxx.llvm.org/Status/Cxx20.html shows: >=20 > P1208R6 LWG Adopt source_location for C++20 Cologne Complete 16.0 >=20 > So, likely FreeBSD will not have this until it progresses to > LLVM16 . It just changed to LLVM15 in main [so: FreeBSD 14]. The include of source_location is guarded under an #if __has_include, it = should be used only if it exists. If it doesn=E2=80=99t, there=E2=80=99s = a stub implementation. If you have GCC includes in your include path, = is it possible that it=E2=80=99s finding a source_location that is then = guarded behind a check for a compiler builtin that clang doesn=E2=80=99t = have? David