On 10/16/2016 05:27 PM, Segher Boessenkool wrote:

Oddly enough, I had forgotten to call add_function_usage_to() on my save
stub (which I didn't post), but not the restore stub. So thanks for that
psychic intervention. :) But if you look carefully, it's there, although
it's hard to read because of all the line wrapping:

     (expr_list (use (reg:DI 4 si))
But shouldn't it be marked as using RCX as well?

So the bright side is that I'm learning a lot more about
gcc internals! Which is probably my main goal of this exercise.


Hehe, well no, it's the sibcall to LeaveCriticalSection that needs RCX. My stub isn't reading or touching it.


Reply via email to