Subject: Re: GCC4 on amd64 breaks in pxeboot during build
To: Scott Ellis <scotte@warped.com>
From: David Laight <david@l8s.co.uk>
List: tech-toolchain
Date: 05/25/2006 08:01:42
On Wed, May 24, 2006 at 11:50:24AM -0700, Scott Ellis wrote:
> I thought I saw in one of mrg's email updates that amd64 builds properly 
> with gcc4, so I thought I'd give it a whirl.  Unfortunately, I get 
> breakage in the pxe boot stuff (specifically i386/stand/pxeboot/pxe.h).
> 
> This looks like a GCC4 specific problem, since it deals with the 
> __packed__ attribute which has been causing problems elsewhere.

[snip]
> /misc/netbsd_src/src/sys/arch/i386/stand/pxeboot/pxe.h:52: warning: 
> '__packed__' attribute ignored
> /misc/netbsd_src/src/sys/arch/i386/stand/pxeboot/pxe.h:58: warning: 
> '__packed__' attribute ignored

These don't look good...
The first is {int16_t, uint16_t;}, the second {uint16_t, uint32_t, uint16_t;}
both have to have an alignment contraint of 1 (as well as no gaps).

	David

-- 
David Laight: david@l8s.co.uk