Subject: Re: gcc4 lossage on mips kernels with semi-packed struct
To: Simon Burge <firstname.lastname@example.org>
From: Matthias Drochner <M.Drochner@fz-juelich.de>
Date: 05/16/2006 15:52:02
> A workaround is to simply reverse the last two lines in struct
> bootpcontext, so that dhcp_serverip is aligned nicely.
Then it would be better to just use an uint32_t or so to store
the IP address in "struct bootpcontext". There is no technical
reason to have that thing "packed" here.
Imho the "packed" attribute to "struct in_addr" is wrong, probably
causes a lot of overhead on every access.
It might be a workaround for other compiler problems, but then
there should be a better fix.