[Bug rtl-optimization/40667] [4.4/4.5 Regression] stack frames are generated even with -fomit-frame-pointer

mikulas at artax dot karlin dot mff dot cuni dot cz gcc-bugzilla@gcc.gnu.org
Sat Aug 8 14:15:00 GMT 2009



------- Comment #23 from mikulas at artax dot karlin dot mff dot cuni dot cz  2009-08-08 14:15 -------
(In reply to comment #22)
> It is because -malign-double will align long long to 8 byte.

Yes, it aligns it in the structures ... but why on the stack? Those people who
were writing it really didn't understand the difference between preferred
alignment (long long, double, long double) that shouldn't trigger any stack
realigns and enforced alignment (sse 16-byte) that should. So gcc aligns the
stack when it's not needed and doesn't align it when it is (PR 40838). That's
why I think it needs redesign, it can't be fixed with incremental hacks.


-- 


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



More information about the Gcc-bugs mailing list