From owner-cvs-src@FreeBSD.ORG Mon Sep 1 09:08:20 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 413E016A4BF; Mon, 1 Sep 2003 09:08:20 -0700 (PDT) Received: from dragon.nuxi.com (trang.nuxi.com [66.93.134.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 24FFF43FD7; Mon, 1 Sep 2003 09:08:19 -0700 (PDT) (envelope-from obrien@dragon.nuxi.com) Received: from dragon.nuxi.com (obrien@localhost [127.0.0.1]) by dragon.nuxi.com (8.12.9/8.12.9) with ESMTP id h81G8IoP065747; Mon, 1 Sep 2003 09:08:18 -0700 (PDT) (envelope-from obrien@dragon.nuxi.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.12.9/8.12.9/Submit) id h81G8ISp065746; Mon, 1 Sep 2003 09:08:18 -0700 (PDT) (envelope-from obrien) Date: Mon, 1 Sep 2003 09:08:18 -0700 From: "David O'Brien" To: deischen@FreeBSD.org Message-ID: <20030901160817.GA64187@dragon.nuxi.com> References: <20030901054538.GA93247@dragon.nuxi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 5.1-CURRENT Organization: The NUXI BSD Group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/contrib/gcc/config freebsd-spec.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: obrien@FreeBSD.org List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Sep 2003 16:08:20 -0000 On Mon, Sep 01, 2003 at 02:08:58AM -0400, Daniel Eischen wrote: > > > > Please back this out. Thank you for backing this out. > > For one, don't forget people use the GCC ports and the stock sources from > > the FSF -- we don't need the system compiler to be the old man out. If > > you really want to de-support "-pthread" there are two ways to go about > > it. (1) starting with some GCC version, (2) starting with targeting a > > particular FreeBSD version. For instance we could either say that GCC > > 3.4 does not accept "-pthread" for any FreeBSD target. Or we could say > > that GCC targeting RELENG_5 does not accept "-pthread". It should be > > clear which is being chosen and the repercussions. > > RELENG_5 should not support it. We need to get rid of > it ASAP so we can work on getting our ports free of it > and making them work with other thread libraries. > > How do we accomplish this quickly? Sounds like you want a policy that: "-pthread" should not be supported when targeting FreeBSD 5.{2-9} using FSF GCC 3.3.2 (and 3.3.1 in /usr/src). You would also like to not support "-pthread" when targeting FreeBSD 4.x. I'm not convinced that we really can remove it there. Also that will make FSF GCC 3.3.2 not accept the same options that the system FreeBSD 4.x compiler does. Can we live with tolerating "-pthread" when targeting FreeBSD 4.x by any version of FSF GCC? If so, an acceptable diff would be to only change the FBSD_LIB_SPEC w/in the "#if __FreeBSD_version >= 500016" block. Turning "-pthread" into a NOP + warning would be nice, but the error output code you replaced the entire FBSD_LIB_SPEC with would be OK too I guess. The comment addressing "At __FreeBSD_version 500016 and later,..." should be updated. Can you commit such a change? I'll get it into the right FSF GCC person's hands for GCC 3.3.2. -- -- David (obrien@FreeBSD.org)