From nobody Tue May 3 00:18:42 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 0288E1ABF551 for ; Tue, 3 May 2022 00:18:45 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.95.76.21]) (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 (2048 bits) client-digest SHA256) (Client CN "troutmask", Issuer "troutmask" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KsgYH6GGhz3pXs; Tue, 3 May 2022 00:18:43 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) by troutmask.apl.washington.edu (8.16.1/8.16.1) with ESMTPS id 2430IgVg013913 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Mon, 2 May 2022 17:18:42 -0700 (PDT) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.16.1/8.16.1/Submit) id 2430IgVt013912; Mon, 2 May 2022 17:18:42 -0700 (PDT) (envelope-from sgk) Date: Mon, 2 May 2022 17:18:42 -0700 From: Steve Kargl To: Ed Maste Cc: FreeBSD Current Subject: Re: Profiled libraries on freebsd-current Message-ID: Reply-To: sgk@troutmask.apl.washington.edu References: 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: 4KsgYH6GGhz3pXs X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=fail reason="No valid SPF, No valid DKIM" header.from=washington.edu (policy=none); spf=none (mx1.freebsd.org: domain of sgk@troutmask.apl.washington.edu has no SPF policy when checking 128.95.76.21) smtp.mailfrom=sgk@troutmask.apl.washington.edu X-Spamd-Result: default: False [-0.35 / 15.00]; HAS_REPLYTO(0.00)[sgk@troutmask.apl.washington.edu]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-0.47)[-0.466]; MIME_GOOD(-0.10)[text/plain]; REPLYTO_ADDR_EQ_FROM(0.00)[]; NEURAL_HAM_MEDIUM(-0.53)[-0.528]; NEURAL_SPAM_SHORT(0.65)[0.648]; TO_DN_ALL(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; MLMMJ_DEST(0.00)[freebsd-current]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:73, ipnet:128.95.0.0/16, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; DMARC_POLICY_SOFTFAIL(0.10)[washington.edu : No valid SPF, No valid DKIM,none] X-ThisMailContainsUnwantedMimeParts: N On Mon, May 02, 2022 at 10:37:00AM -0700, 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? > Well, I built and executed gcc testsuite with and without threads enabled. Either a few new test failures in the disable case may unilaterally assume threads are available, or these are in fact issues (with a rarely used configure option). config 1 ../gccx/configure --prefix=$HOME/work/x --enable-languages=c,c++,fortran,lto \ --enable-bootstrap --disable-nls --enable-checking --disable-multilib config 2 ../gccx/configure --prefix=$HOME/work/x --enable-languages=c,c++,fortran,lto \ --enable-bootstrap --disable-nls --enable-checking --disable-multilib \ --enable-threads=no --disable-threads === g++ Summary === config 1 config 2 # of expected passes 225442 225348 # of unexpected failures 675 724 # of expected failures 2071 2071 # of unresolved testcases 11 47 # of unsupported tests 10342 10342 === gcc Summary === # of expected passes 175562 175401 # of unexpected failures 1046 1116 # of unexpected successes 20 20 # of expected failures 1459 1459 # of unresolved testcases 10 92 # of unsupported tests 3260 3260 === gfortran Summary === # of expected passes 66124 66046 # of unexpected failures 6 84 # of expected failures 272 272 # of unresolved testcases 2 2 # of unsupported tests 100 100 -- Steve