This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/20794] [4.0/4.1 Regression] Arrays and pointer arithmetic on __attribute ((aligned)) types permitted
- From: "sje at cup dot hp dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Apr 2005 19:44:13 -0000
- Subject: [Bug middle-end/20794] [4.0/4.1 Regression] Arrays and pointer arithmetic on __attribute ((aligned)) types permitted
- References: <20050406144601.20794.jakub@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From sje at cup dot hp dot com 2005-04-27 19:44 -------
It looks like most of the compat tests have been fixed but I still get two
failures. They are tmpdir-gcc.dg-struct-layout-1/t002 and
tmpdir-gcc.dg-struct-layout-1/t027. I cut down t002 and wound up with
void * __attribute__((aligned (8))) a[2];
I am not sure if this is supposed to apply the alignment to the array as a whole
or to the elements. It appears to be applying it to the elements. If it is
supposed to apply it to the elements then it is an illegal test, if it is
supposed to apply it to the array as a whole then it is a compiler bug.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20794