On 7/14/05, Magenheimer, Dan (HP Labs Fort Collins) <[EMAIL PROTECTED]> wrote: > > > No ... I saw it too without gcc-4. See > > http://tinyurl.com/clzbu where I > > > identified the patch that seems to be the cause. > > > > Patch below fixes the problem. Moral of the story: don't add > > "attributed(packed)" lightly! > > IIRC as of gcc3.2, attribute(packed) on ia64 meant roughly the > equivalent of specifying "generate the worst case possible > code even for things that are aligned". Is that still the > case in gcc-4?
I'm not sure whether gcc-4 is doing a better job at identifying structures which are aligned better than the worst-case (I'd be curious to hear about that, if somebody plays with this or already knows how it behaves). Having said that, for EFI that's hardly an issue since most of the code using those structures is executed only once at boot-time, so performance isn't an issue (I suppose code-size may be almost a bigger issue in that area). --david - To unsubscribe from this list: send the line "unsubscribe linux-ia64" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html
