[Bug target/37010] -mno-accumulate-outgoing-args doesn't work with stack alignment

Joey dot ye at intel dot com gcc-bugzilla@gcc.gnu.org
Tue Aug 5 01:02:00 GMT 2008



------- Comment #15 from Joey dot ye at intel dot com  2008-08-05 01:01 -------
(In reply to comment #12)
> I think the problem is in
>   /* Set offset to aligned because the realigned frame tarts from here.  */
>   if (stack_realign_fp)
>     offset = (offset + stack_alignment_needed -1) & -stack_alignment_needed;
> This code assumes that offset 0 is properly aligned to any alignment,
> which isn't true. It happens to work with -maccumulate-outgoing-args.
I still believe #8 is the right reason.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37010



More information about the Gcc-bugs mailing list