From owner-freebsd-arch@FreeBSD.ORG Wed Nov 17 19:58:10 2010 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9ADED106564A; Wed, 17 Nov 2010 19:58:10 +0000 (UTC) (envelope-from tijl@coosemans.org) Received: from mailrelay002.isp.belgacom.be (mailrelay002.isp.belgacom.be [195.238.6.175]) by mx1.freebsd.org (Postfix) with ESMTP id D71C98FC1E; Wed, 17 Nov 2010 19:58:09 +0000 (UTC) X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AkIFAGvB40xbsb61/2dsb2JhbACUUI1/csBshUsE Received: from 181.190-177-91.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([91.177.190.181]) by relay.skynet.be with ESMTP; 17 Nov 2010 20:58:07 +0100 Received: from kalimero.tijl.coosemans.org (kalimero.tijl.coosemans.org [127.0.0.1]) by kalimero.tijl.coosemans.org (8.14.4/8.14.4) with ESMTP id oAHJw7ZQ005305; Wed, 17 Nov 2010 20:58:07 +0100 (CET) (envelope-from tijl@coosemans.org) From: Tijl Coosemans To: freebsd-arch@freebsd.org Date: Wed, 17 Nov 2010 20:57:51 +0100 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.5.2; i386; ; ) References: <201007291718.12687.tijl@coosemans.org> <4CE417B3.3030102@bsdimp.com> In-Reply-To: <4CE417B3.3030102@bsdimp.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2338844.TBlaxosnTs"; protocol="application/pgp-signature"; micalg=pgp-sha256 Content-Transfer-Encoding: 7bit Message-Id: <201011172058.05683.tijl@coosemans.org> Cc: Dimitry Andric , Warner Losh , Garrett Cooper Subject: Re: Support for cc -m32 X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Nov 2010 19:58:10 -0000 --nextPart2338844.TBlaxosnTs Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable On Wednesday 17 November 2010 18:58:11 Warner Losh wrote: > On 11/17/2010 10:21, Garrett Cooper wrote: >> On Wed, Nov 17, 2010 at 4:19 AM, Dimitry Andric wrote: >>> On 2010-08-30 22:09, Tijl Coosemans wrote: >>>> On Monday 30 August 2010 20:36:36 M. Warner Losh wrote: >>>>> :> http://people.freebsd.org/~tijl/cc-m32-1.diff > This patch looks good. I agree we should commit it right away. I can=20 > do the honors later today, or dim@ can. I'm agnostic who does the push. Committed as r215439. >>>>> :> http://people.freebsd.org/~tijl/cc-m32-2.diff >>>>> :> http://people.freebsd.org/~tijl/cc-m32-3.diff > Now that we have tbemd in the tree, we should take a fresh look at these= =20 > patches. I'll try to look at these later today as well. I've updated them to today's CURRENT. They're a bit smaller now because some amd64 headers have been moved to x86. This also solved the problem with the kdump build. Here are the commit logs: cc-m32-2.diff: Install i386 headers on amd64. =20 Machine specific headers for an architecture $arch are now installed under /usr/include/$arch. This means machine headers are always in the same location whether you are cross compiling or not. =20 /usr/include/machine is a symlink to /usr/include/${MACHINE}. cc-m32-3.diff: Modify amd64 headers to include i386 headers when compiling 32 bit code. =20 All amd64 headers follow the following format: =20 #ifndef _AMD64_HEADER_H_ #define _AMD64_HEADER_H_ =20 #ifdef __i386__ #include #else =20 /* Amd64 declarations go here. */ =20 #endif /* __i386__ */ #endif /* !_AMD64_HEADER_H_ */ --nextPart2338844.TBlaxosnTs Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) iF4EABEIAAYFAkzkM80ACgkQfoCS2CCgtivcDgEAiGeLBDR/C7+lPFHcah5nHdq1 gqfTNqpK6WLuNmMy+GMA/2fpNVP43sn1Kk8Zm5pm1MEnOKU1Gmv8qwemM9x8SLXj =8XJc -----END PGP SIGNATURE----- --nextPart2338844.TBlaxosnTs--