[PATCH]: PR c/34921 Misalign stack variable referenced by nested function

Andrew Pinski pinskia@gmail.com
Sun Feb 24 17:29:00 GMT 2008


On Sun, Feb 24, 2008 at 8:06 AM, David Daney <ddaney@avtrex.com> wrote:
>  Why doesn't __attribute__ (( aligned(16) )) issue a warning if the
>  specified alignment cannot be guaranteed?
>
>  I think the stack alignment branch is working on this issue for x86, but
>  I am not sure about the availability of a general solution.

I posted a general solution already.  Just nobody wants to review it
and HJL did not like my general solution.

See http://gcc.gnu.org/ml/gcc-patches/2007-05/msg01167.html .

I am getting tried of pinging the patch which is why I have not looked
into it lately.

I should note we (Sony) have had this patch in the PS3 toolchain for
many releases (it dates back to a 3.4 patch in fact).

Thanks,
Andrew Pinski



More information about the Gcc-patches mailing list