------- Comment #8 from falk at debian dot org 2010-04-19 20:25 ------- Confirmed with current 4.6 on x86-64, here is a testcase:
int owner(); int clear(); static void fixup() { clear(); } inline __attribute__ ((always_inline)) void slowtrylock(void) { if (owner()) fixup(); } void fasttrylock(void (*slowfn)()) { slowfn(); } void trylock(void) { fasttrylock(slowtrylock); } -- falk at debian dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Component|other |tree-optimization Ever Confirmed|0 |1 Keywords| |ice-on-valid-code http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43791