Date: Wed, 17 Nov 2010 20:57:51 +0100 From: Tijl Coosemans <tijl@coosemans.org> To: freebsd-arch@freebsd.org Cc: Dimitry Andric <dim@freebsd.org>, Warner Losh <imp@freebsd.org>, Garrett Cooper <gcooper@freebsd.org> Subject: Re: Support for cc -m32 Message-ID: <201011172058.05683.tijl@coosemans.org> In-Reply-To: <4CE417B3.3030102@bsdimp.com> References: <201007291718.12687.tijl@coosemans.org> <AANLkTinA1D=fBfDznOaEufaskZxDHV=04%2BRjB3U=J6Hc@mail.gmail.com> <4CE417B3.3030102@bsdimp.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--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<dim@freebsd.org> 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 <i386/header.h> #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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201011172058.05683.tijl>