This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: __attribute__((aligned(N))) silently ignored for auto variables
- From: Jim Wilson <wilson at specifixinc dot com>
- To: Rene Herman <rene dot herman at keyaccess dot nl>
- Cc: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 05 Feb 2004 12:46:15 -0800
- Subject: Re: __attribute__((aligned(N))) silently ignored for auto variables
- References: <4019DDED.1030004@keyaccess.nl>
Rene Herman wrote:
Was instructed (on irc.oftc.net:#gcc) to file a bug report. It seems gcc
silently ignores __attribute__((aligned(N))) on stack variables (even
with -mpreferred-stack-boundary=K, K >= 2logN). My own test is with:
Yes, it does. The aligned attribute works for structure members, and
global scalar variables, but not for local scalar variables. This has
apparently always been the case.
If you want someone to deal with this problem, you should submit a bug
report into our bugzilla bug database. We don't track problems sent to
the bug-gcc mailing list. See
http://gcc.gnu.org/bugs.html
--
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com