------- Comment #4 from vmakarov at redhat dot com 2009-09-03 21:40 ------- Oh well, another haifa-scheduler integration issue after so many years to integrate it into GCC. It looks like the original haifa-scheduler treated calls as always returning.
I think you should use last_function_call and make dependence for trapping insn to calls on this list which might not return. You could ignore issue with already processed insn with trapping memory because you can add as many dependencies between the two insns as you want. Sched-deps.c code is pretty smart with this point of view. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41239