This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gcc4, static array, SSE & alignement


Ok, since i've already looked like an uneducated fool today and i'm
grasping at straws...

Question: why do i get an unaligned array as soon as g++ (4.1.0
20050327, cygwin) finds out that it's static (i mean even if i try to
fool it around a bit)?
It seems to only happen with multidimensionnal arrays, or arrays large enough.

color_t is a __m128 in disguise.
color_t above[1024][2]; -> aligned
static color_t above[1024][2]; -> unaligned

I've tried countless alignement attribute variations and/or
indirections but with the same result.
Other statically allocated, but smaller, thingies in the same unit are
properly aligned.

Have i crossed some magic treshold?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]