------- Comment #9 from vmakarov at redhat dot com 2010-09-08 20:06 ------- (In reply to comment #8) > (In reply to comment #7) > > Is this still a bug then? Should ira-share-spill-slots be automatically > > disabled for the caller function when a callee function can return twice? > > > I've never tested with gcc-4.5.x, but in 4.4.x the problem is still present. > > Unfortunately -fno-ira-share-spill-slots seems to introduce another bug which > leads to wrong computations (nearly at the same code position where I had the > problems mentioned is this report). > > At this moment I can not provide a detailed report for this problem, but > perhaps it's the same as http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40386. >
I've submitted a patch solving PR40386. So now we can solve this problem by preventing slot sharing when setjmp is used. I'll send a patch soon. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44554