This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/16660] attribute((aligned)) doesn't work for variables on the stack for greater than required alignement
- From: "hjl at lucon dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Oct 2007 22:27:40 -0000
- Subject: [Bug middle-end/16660] attribute((aligned)) doesn't work for variables on the stack for greater than required alignement
- References: <bug-16660-1824@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #10 from hjl at lucon dot org 2007-10-03 22:27 -------
For backend with frame pointer and working -fomit-frame-pointer -g, can
we
1. Make -fomit-frame-pointer per function, instead of per file.
2. Enable -fomit-frame-pointer for functions which need stack alignment.
3. Mark frame-pointer as reserved and use frame pointer to save stack
pointer.
and make sure that
1. tail call optimization.
2. stack unwind.
3. nested functions.
4. inline functions
work properly?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16660