Re: gcc: warn about overly aligned stack variables

2014-06-23 Thread Matthew Dempsky
On Mon, Jun 23, 2014 at 9:59 AM, Miod Vallat wrote: > I love this. I have verified that kernels for all our gcc4 platforms > still build with this diff. Awesome! I also heard back from guenther@ that he completed an i386 base build without warnings too. Do we want to test this any further (e.g.

Re: gcc: warn about overly aligned stack variables

2014-06-23 Thread Miod Vallat
> GCC supports an "aligned" attribute to specify a minimum alignment for > types/objects. However, if an object is allocated on the stack and > its alignment exceeds the "preferred stack boundary", then GCC 4.2 > silently ignores the alignment. [...] > Since newer GCC properly support overly ali

gcc: warn about overly aligned stack variables

2014-06-20 Thread Matthew Dempsky
GCC supports an "aligned" attribute to specify a minimum alignment for types/objects. However, if an object is allocated on the stack and its alignment exceeds the "preferred stack boundary", then GCC 4.2 silently ignores the alignment. This bit us 4 years ago when the SCSI stack started allocati