https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61693
Kostya Serebryany <kcc at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2014-07-04 Assignee|unassigned at gcc dot gnu.org |kcc at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Kostya Serebryany <kcc at gcc dot gnu.org> --- Interesting. This is a relatively new c11 feature. On older Linux distros this does not compile nor link: aligned_alloc.c: In function ‘main’: aligned_alloc.c:5:3: warning: implicit declaration of function ‘aligned_alloc’ [-Wimplicit-function-declaration] void * p = aligned_alloc(128, 1024); ... /tmp/ccJJcsqx.o: In function `main': aligned_alloc.c:(.text+0x13): undefined reference to `aligned_alloc' On Ubuntu 14.04 it behaves as you describe and indeed we need to add an interceptor. The tricky part is to add a test that will work on older distros