Hi, We have a thread library which can't be optimized as much as before, because -starting from gcc 3.4- functions calling setjmp can not be inlined. Our problem is with our switchto function:
void switchto(task_t *cur, task_t *next) { if (cur!=next) { if (setjmp(cur->buf) == 1) return; longjmp(next->buf, 1); } } We would really prefer _not_ to have to define this as a macro for getting it correctly inlined in every function that calls it. Is there a really strong reason for not inlining such function ? Regards, Samuel -- Summary: gcc can't inline functions using setjmp Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P2 Component: regression AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: samuel dot thibault at ens-lyon dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24556