This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug regression/24556] New: gcc can't inline functions using setjmp
- From: "samuel dot thibault at ens-lyon dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Oct 2005 08:53:34 -0000
- Subject: [Bug regression/24556] New: gcc can't inline functions using setjmp
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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