------- Comment #5 from pinskia at gcc dot gnu dot org 2008-05-07 05:00 ------- (In reply to comment #4) > The default new operator is implemented within gcc. It should be > possible to let g++ know the alignment returned by the new operator.
The default one is but the user can override it as defined by the C++ standard. Also different OS's return different alignment. Mac OS X (darwin) returns the 16 byte alignment on both PowerPC and x86. While x86 Linux returns 8 byte aligned memory. PPC LV2 returns 16byte aligned memory. PPC Linux should be returning 16byte aligned memory for the 128bit long double but from what I remember or last heard does not. -- Pinski -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36159