From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 21 17:38:15 2011 Return-Path: Delivered-To: hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AFC2A1065670; Thu, 21 Jul 2011 17:38:15 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 5C9CB8FC13; Thu, 21 Jul 2011 17:38:15 +0000 (UTC) Received: from [10.30.101.53] ([209.117.142.2]) (authenticated bits=0) by harmony.bsdimp.com (8.14.4/8.14.3) with ESMTP id p6LHS5NA029782 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES128-SHA bits=128 verify=NO); Thu, 21 Jul 2011 11:28:06 -0600 (MDT) (envelope-from imp@bsdimp.com) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Warner Losh In-Reply-To: <201107201113.52085.jhb@freebsd.org> Date: Thu, 21 Jul 2011 11:27:50 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: <4304C061-51AF-4601-9412-86A24D133A99@bsdimp.com> References: <201107201235.p6KCYvmT007475@fire.js.berklix.net> <201107201113.52085.jhb@freebsd.org> To: John Baldwin X-Mailer: Apple Mail (2.1084) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (harmony.bsdimp.com [10.0.0.6]); Thu, 21 Jul 2011 11:28:09 -0600 (MDT) Cc: freebsd-hackers@FreeBSD.ORG, "Julian H. Stacey" , hackers@FreeBSD.ORG, Dan Nelson Subject: Re: Freebsd-7.4 + std gcc 4.2.1 fails to honour -march=i586 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jul 2011 17:38:15 -0000 On Jul 20, 2011, at 9:13 AM, John Baldwin wrote: > I think this is a harder problem than you expect. It is not just the = crt files > that matter, but every library. You would need CPU-specific versions = of every > static library on the build system, and possibly you would want to do = this for > all shared libraries too. gcc has support for what it calls multilib. It was originally for MIPS = where there were 3 ABIs that needed to be supported simultaneously (o32, = n32 and n64). However, it is general enough to adapt to your needs, I = think. The harder part is fixing things like the ports and such to that as = well... The medium hard part is fixing buildworld to generate all this = stuff in the right places. Warner