http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48338
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-04-13 11:06:48 UTC --- With gcc 4.6 built aio_suspend.os, it works even with -O0 or -O2 -fno-inline, if __pthread_cleanup_routine has __attribute__((always_inline)). With current trunk, even if that routine is inlined it crashes though.