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: "lessen42+gcc at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Aug 2009 08:49:10 -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 #18 from lessen42+gcc at gmail dot com 2009-08-20 08:49 -------
This still doesn't work on ARM either (tested with 4.4.0). The EABI only
mandates the stack be 8 byte aligned, and gcc silently clips any alignment
request above 8 bytes to 8 (so even if the stack were 16-byte aligned by
accident the variables still wouldn't be.)
Even a simple sp -= sp & (align-1) for every function with variables needing
more alignment would be faster than unaligned NEON loads/stores.
--
lessen42+gcc at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |lessen42+gcc at gmail dot
| |com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16660