From nobody Wed May 4 18:12:55 2022 X-Original-To: freebsd-current@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 54AAA1AB3195 for ; Wed, 4 May 2022 18:12:57 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 4KtlLJ6z1Wz4t89; Wed, 4 May 2022 18:12:56 +0000 (UTC) (envelope-from jhb@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651687977; 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=VJ5xpco61opfGgdXInliopKgpvJtLsT4Q0TbRZ3dfXE=; b=lJTjJChKxfbHwnnEvhoxRSFbR7fecsGLds4FUCcYxH2DLiEss/RT7nY/fISIOxxsbZ1A+M mWMtWPPqoq72MAUDuKyq1iLY/eIpbZNKXMwVrebTBxk3R7LKMsUtyGR+y7tj81F0XfzMEx kc4697ZKpFEjwKDwk/YIoHogAX2Gwf1CuKRnNncn8AlvxFNh1xRtu8kQc78MleOzAlERnb 6kQl0Gd169xWfS8hXbn+6PwUyLPp1/HkQbYlu9vqm7zo7OyhrtvxB26+FneeiZMpN+USo0 FUo5C73Dh1HvreCjlYXSrv0wYLVixYQUre6MfetSJvssqWNlwPHpEhg/iGCtFg== Received: from [10.0.1.4] (ralph.baldwin.cx [66.234.199.215]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: jhb) by smtp.freebsd.org (Postfix) with ESMTPSA id 7075C64CF; Wed, 4 May 2022 18:12:56 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Message-ID: <80e38cf3-0d53-fce6-76e6-936c47d95c91@FreeBSD.org> Date: Wed, 4 May 2022 11:12:55 -0700 List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: Profiled libraries on freebsd-current Content-Language: en-US To: sgk@troutmask.apl.washington.edu, Ed Maste Cc: FreeBSD Current References: From: John Baldwin In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651687977; 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=VJ5xpco61opfGgdXInliopKgpvJtLsT4Q0TbRZ3dfXE=; b=VX2kAutE+5SNB1qekeJCQIsXT1j1WpW4lOQsJ+szKly2GmAhjEdVyiqyKiR+lkh0SQcamx /LHtjwdSxnbaSil08twcKHOXGKXNfMM5AZVLcYZwYd48e02scVhlP3j9OGfz6eWSmd4/2m RsgXrePxzuSKJRTAnKtt51jZAFVu1Yp5LAy4YuMlB7no4039B0xeGHnFtC13UvEbKYTsFF USgM5UAi3vktsvDO72gdX03sDVAZOMMHrX8iv8eq2PpkfnqFr1tPwO0iVK1ZifWO46VdAs +ENXmpn54XPlgdIKqn8/wX5/v3X+zgZvCXBXIFJWVrQaBDZtiO3n9Ba+Y4pKTw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1651687977; a=rsa-sha256; cv=none; b=heqlgIFDzEZCay1v16/GaytVe1odgkDj6feNQFCnP8fLn4Eq21ynkSUxeXFyqcH5i7NCKi rDg3Dsg6HUGE6brLuSDioUXPR8LDAOHMLAg06i+bdrNEndRzN0G9PFjEwnsawWeaM0P2nP f12hZ0wCJIYz6VJYHeOhRWf4nDMKUf9Y+XcwozFX/YSljOgHi4ilX6HVYaoCPrPiQvjPqr DKIIExwbsykOnBQqJ/SD/o2Z5V857sUQhQ89UGQbfliSwBunAbtVdoJBQxuNIUIYt796eb KpCiAU+gXQqjrMBwydRYunSYA92dvLczt2IKku0KP5QpwEg0E6LGxJuTnnipIw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N On 5/2/22 10:37 AM, Steve Kargl wrote: > On Mon, May 02, 2022 at 12:32:25PM -0400, Ed Maste wrote: >> On Sun, 1 May 2022 at 11:54, Steve Kargl >> wrote: >>> >>> diff --git a/gcc/config/freebsd-spec.h b/gcc/config/freebsd-spec.h >>> index 594487829b5..1e8ab2e1827 100644 >>> --- a/gcc/config/freebsd-spec.h >>> +++ b/gcc/config/freebsd-spec.h >>> @@ -93,14 +93,22 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see >>> (similar to the default, except no -lg, and no -p). */ >>> >>> #ifdef FBSD_NO_THREADS >> >> I wonder if we can simplify things now, and remove this >> `FBSD_NO_THREADS` case. I didn't see anything similar in other GCC >> targets I looked at. > > That I don't know. FBSD_NO_THREADS is defined in freebsd-nthr.h. > In fact, it's the only thing in that header (except copyright > broilerplate). freebsd-nthr.h only appears in config.gcc and > seems to only get added to the build if someone runs configure > with --enable-threads=no. Looking at my last config.log for > gcc trunk, I see "Thread model: posix", which appears to be > the default case or if someone does --enable-threads=yes or > --enable-threads=posix. So, I suppose it comes down to > two questions: (1) is libpthread.* available on all supported > targets and versions? (2) does anyone build gcc without > threads support? libpthread is available on all supported architectures on all supported versions. libthr has been the default threading library since 7.0 and the only supported library since 8.0. In GDB I just assume libthr style threads, and I think GCC can safely do the same. -- John Baldwin