http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59958
--- Comment #2 from Martin Husemann <martin at netbsd dot org> --- Is the alignment expected from malloc() configurable in gcc and/or different from the standard stack alignment? A small test program along the lines of if ((uintptr_t)malloc(1) & mask) printf("yes\n") else printf("no\n"); and checking what gcc -O2 optimizes away for different masks seems to show that on alpha & 7 is optimized, while & 15 is not. This sounds good for alpha. However, I get the same results for amd64 - where I would have expected the required alignement to be 16 byte. Is this a bug in our amd64 target configuration, or am I misundertanding something?