OSDN Git Service

Swap the action and jmpbuf arguments to GTM_longjmp
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 30 Nov 2011 22:29:33 +0000 (22:29 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 30 Nov 2011 22:29:33 +0000 (22:29 +0000)
commit0389984f5e1661a5cd9dc0f15dc55a9ff5a3b927
tree9f60b09cc1447fb54c59835052aa947c7643e8ec
parent2380e91ebcff9e62483029a65772f4f6bc431afb
Swap the action and jmpbuf arguments to GTM_longjmp

On several ABIs, the first register parameter is the same as
the return value register.  Moving the action parameter first
avoids the need for register shuffling on these targets.

        * libitm_i.h (GTM_longjmp): Swap first and second arguments.
        * beginend.c (_ITM_abortTransaction): Update to match.
        (GTM::gtm_thread::restart): Likewise.
        * config/alpha/sjlj.S (GTM_longjmp): Likewise.
        * config/x86/sjlj.S (GTM_longjmp): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@181863 138bc75d-0d04-0410-961f-82ee72b054a4
libitm/ChangeLog
libitm/beginend.cc
libitm/config/alpha/sjlj.S
libitm/config/x86/sjlj.S
libitm/libitm_i.h