------- Comment #17 from jason at gcc dot gnu dot org 2006-09-08 22:37 ------- Hmm, it seems things are a bit more complicated than I thought. Without my change to expand_builtin_setjmp_receiver, Janis's test passes at -O0 and fails at -O1; the adjustment of r31 at -O0 is actually correct.
However, with my change, it fails at -O0 and passes at -O1. It seems that there's a problem in the sjlj unwinder. Continuing to investigate... -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28493