From nobody Mon Feb 13 10:45:56 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 4PFgx219tmz3q1Gp for ; Mon, 13 Feb 2023 10:45:58 +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 4PFgx20gX8z3kbG; Mon, 13 Feb 2023 10:45:58 +0000 (UTC) (envelope-from theraven@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676285158; 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=qvClFFhjpjeTucXd3S9G/h5Uz1IU0YDutUnk1EWcSpo=; b=Dw/CHaCTPO3kUNlP08IoP72mi1M2wJh6hEn5yCLg720TWSrc1Ce4OGykI75N7OSEIMYLTy mmId7NT52kiS06OcbZPogp1GJapqxAtUIOwU04BpZmPhVXBOHog3+vjoVT+yeMSswhmHIO gj6AQPhlL/PY/+XkTokjemzxYZqS5gmDzQWloMZMN1yTGnbAh3R+votXuowxt7kc7nY2EU srjHd/ZhXHEzqY45JaZYo2BbvdDExZJE0KMi2MBBpDGAoYM1Bc2fLd036G62fa9786G6q+ nNSvzkYibE+uvu5O3enCr1igzjCe2cWvfQR8vVHoSuviuNMfHVB+UpxJywU6kA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676285158; 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=qvClFFhjpjeTucXd3S9G/h5Uz1IU0YDutUnk1EWcSpo=; b=LQvWwNNafKnBrDBc9J2W20tgmH2TtToJMHireJ/n3a9PbIrfWxbRNnmAX/R5ycm6pJZKF/ IgUHm8hCscmujP6paNlAt2RxEm+8N6E3b0tzo84Eo2gzSOXpLp2+R7pB+3a/Pe4zYWqAF+ tU+NkEL1+RoDO0LwTMaGQgSmeR6+fwY/jXGmRQYYhIg/hw06HGkug4a/4Ti0gahIPzfPXc GkAGCOnfxYobgF1afMsplORWerhG7LWIGyzbC1qwMw545bNLQxaib+L4Cmgw9O8qymMWHO 4ppb3Ff6P9RsBGOlI514zNVfUvsEHRkxE8O2UsK+RKWsMP8SovkJSwwbEiSzGg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676285158; a=rsa-sha256; cv=none; b=NqCtn3IrWY/5LcClw0z3caGuxMqQZ29YqzX0E/HPZhHQ4t94JhwdmQ81TZxFuXePOfy95f q3z1p3SJC9LIGlPCUtt1CHAfmrMufasS64DnzjYXAAfvc6qj/qyMeuKE8CpzIJ46b4Cn0d zRWBUIKFlsWKfrm0t3V/L6CHba19mps6a/x3h9W58BiqmsEYaWT+P2CFi1JzaYI1JSukHr JEChI5GmPDBp94rTfE07E5CWMQblOVKqoD/pOcsVi3tbOh9Uezcq4n9nW2ZqkEI8HKnyRp 6AfW/ahlwfC2w2D3IKUz+vK9ySWxDb6NNzjbAwGknU7zJU66ibvX5ILr7E5PrQ== 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 4PFgx16hJhz17sB; Mon, 13 Feb 2023 10:45:57 +0000 (UTC) (envelope-from theraven@FreeBSD.org) Received: from [10.164.186.150] (unknown [167.220.197.150]) by smtp.theravensnest.org (Postfix) with ESMTPSA id 3CA3C1060C; Mon, 13 Feb 2023 10:45:57 +0000 (GMT) Message-ID: <69917cbd-816b-da64-988d-910ddb88438e@FreeBSD.org> Date: Mon, 13 Feb 2023 10:45:56 +0000 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 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.7.2 Subject: Re: CFT: snmalloc as libc malloc Content-Language: en-GB To: Mark Millard , Shawn Webb Cc: FreeBSD Hackers References: <20230212210904.nzxfwtzsjf2tu6ky@mutt-hbsd> <0F63E50F-C0DF-48C4-81A0-6EEF46C9C397@yahoo.com> From: David Chisnall In-Reply-To: <0F63E50F-C0DF-48C4-81A0-6EEF46C9C397@yahoo.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ThisMailContainsUnwantedMimeParts: N On 12/02/2023 22:32, Mark Millard wrote: > I'll note that include/c++/v1/stddef.h uses: > > #include_next > > That in turn causes a stddef.h to be found that is > from later in the search list (not earlier or the > same file again). > > As for the include ordering, this leads to > . . ./include/c++/v1 needing to be before the > directory for the matching normal C header(s) that > C++ is(are) trying to include. > > There are implications for recursive include > handling during #include_next processing (just the > tail of the search list is used as I understand). I hit a problem with this related to the msun headers, which was fixed in the diff by changing the include from libc to: CFLAGS+= --include-directory-after ${SRCTOP}/lib/msun/src This may also be necessary for other headers if the way that the libc / libc++ headers are included has changed. David