summaryrefslogtreecommitdiff
path: root/libitm/config/alpha
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2011-11-30 22:29:33 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2011-11-30 22:29:33 +0000
commit0389984f5e1661a5cd9dc0f15dc55a9ff5a3b927 (patch)
tree9f60b09cc1447fb54c59835052aa947c7643e8ec /libitm/config/alpha
parent2380e91ebcff9e62483029a65772f4f6bc431afb (diff)
downloadgcc-0389984f5e1661a5cd9dc0f15dc55a9ff5a3b927.tar.gz
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
Diffstat (limited to 'libitm/config/alpha')
-rw-r--r--libitm/config/alpha/sjlj.S44
1 files changed, 22 insertions, 22 deletions
diff --git a/libitm/config/alpha/sjlj.S b/libitm/config/alpha/sjlj.S
index 3aa5f06e332..615eacb8688 100644
--- a/libitm/config/alpha/sjlj.S
+++ b/libitm/config/alpha/sjlj.S
@@ -81,28 +81,28 @@ _ITM_beginTransaction:
GTM_longjmp:
.prologue 0
- ldq $26, 0($16)
- ldq $9, 8($16)
- ldq $10, 16($16)
- ldq $11, 24($16)
-
- ldq $12, 32($16)
- ldq $13, 40($16)
- ldq $14, 48($16)
- ldq $15, 56($16)
-
- ldq $1, 64($16)
- ldt $f2, 72($16)
- ldt $f3, 80($16)
- ldt $f4, 88($16)
-
- ldt $f5, 96($16)
- ldt $f6, 104($16)
- ldt $f7, 112($16)
- ldt $f8, 120($16)
-
- ldt $f9, 128($16)
- mov $17, $0
+ ldq $26, 0($17)
+ ldq $9, 8($17)
+ ldq $10, 16($17)
+ ldq $11, 24($17)
+
+ ldq $12, 32($17)
+ ldq $13, 40($17)
+ ldq $14, 48($17)
+ ldq $15, 56($17)
+
+ ldq $1, 64($17)
+ ldt $f2, 72($17)
+ ldt $f3, 80($17)
+ ldt $f4, 88($17)
+
+ ldt $f5, 96($17)
+ ldt $f6, 104($17)
+ ldt $f7, 112($17)
+ ldt $f8, 120($17)
+
+ ldt $f9, 128($17)
+ mov $16, $0
mov $1, $30
ret
.end GTM_longjmp