------- Comment #7 from hjl dot tools at gmail dot com 2009-01-09 01:09 ------- We can solve it with
1. A target should define MALLOC_ABI_ALIGNMENT properly. 2. g++ should issue an error when the default new operator is used on a type whose alignment is greater than MALLOC_ABI_ALIGNMENT. 3. It is user's responsibility to provide a new operator to return a properly aligned memory. 4. g++ can assume memory return by the user-provided new operator is properly aligned. -- hjl dot tools at gmail dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |xuepeng dot guo at intel dot | |com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36159