------- Comment #1 from mikpe at it dot uu dot se 2010-04-23 22:32 ------- (In reply to comment #0) > GCC should at least warn (or even error out) when __alignof(type) > > alignment_of_new/malloc.
No. It should know about the target's malloc alignment guarantees and, if necessary, fix up the alignment at runtime. This isn't rocket science. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43874