[Bug middle-end/20794] [4.0/4.1 Regression] Arrays and pointer arithmetic on __attribute ((aligned)) types permitted
sje at cup dot hp dot com
gcc-bugzilla@gcc.gnu.org
Wed Apr 27 19:44:00 GMT 2005
------- 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
More information about the Gcc-bugs
mailing list