https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53900
Benoit Jacob jacob.benoit.1 at gmail dot com changed:
What|Removed |Added
CC|
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53900
--- Comment #7 from Christoph Hertzberg chtz at informatik dot uni-bremen.de
2013-01-07 10:19:13 UTC ---
(In reply to comment #6)
__attribute__((aligned(16))) float array[4];
Explicitly says the array is aligned to 16 bytes which
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53900
--- Comment #8 from Andrew Pinski pinskia at gcc dot gnu.org 2013-01-07
10:21:44 UTC ---
(In reply to comment #7)
(In reply to comment #6)
__attribute__((aligned(16))) float array[4];
Explicitly says the array is aligned to 16
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53900
--- Comment #6 from Andrew Pinski pinskia at gcc dot gnu.org 2013-01-07
04:25:38 UTC ---
__attribute__((aligned(16))) float array[4];
Explicitly says the array is aligned to 16 bytes which means it is undefined by
the C/C++ standard
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53900
Kacper Kowalik xarthisius.kk at gmail dot com changed:
What|Removed |Added
CC|
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53900
--- Comment #4 from Gael Guennebaud gael.guennebaud at gmail dot com
2012-07-10 11:09:16 UTC ---
Created attachment 27770
-- http://gcc.gnu.org/bugzilla/attachment.cgi?id=27770
Another demonstration of the issue using std::vector
Note that
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53900
Richard Guenther rguenth at gcc dot gnu.org changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53900
--- Comment #2 from Gael Guennebaud gael.guennebaud at gmail dot com
2012-07-09 16:12:07 UTC ---
The problem is that it is not guaranteed to be effectively aligned, and it is
nice to be able to detect when this happens to either abort with a
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53900
--- Comment #3 from Richard Guenther rguenth at gcc dot gnu.org 2012-07-09
16:18:58 UTC ---
Well, I suggest you instead do
struct Foo
{
float array[4];
Foo()
{
std::cout array \n;
// check the object is really aligned
if