Support for cc -m32
Tijl Coosemans
tijl at coosemans.org
Wed Nov 17 19:58:10 UTC 2010
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 at 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
> 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
> 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.
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.
/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.
All amd64 headers follow the following format:
#ifndef _AMD64_HEADER_H_
#define _AMD64_HEADER_H_
#ifdef __i386__
#include <i386/header.h>
#else
/* Amd64 declarations go here. */
#endif /* __i386__ */
#endif /* !_AMD64_HEADER_H_ */
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 228 bytes
Desc: This is a digitally signed message part.
Url : http://lists.freebsd.org/pipermail/freebsd-arch/attachments/20101117/f649f933/attachment.pgp
More information about the freebsd-arch
mailing list