summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIain Sandoe <iain@codesourcery.com>2016-05-26 09:00:00 +0100
committerIain Sandoe <iain@codesourcery.com>2016-05-26 09:06:35 +0100
commit52fbd12dca1bddf0b135a24e7136f10af79a06bd (patch)
tree13e9e3486e15a577f00706355bb70d5dce31127a /src
parent92810b4bc101fccead2234b7385d4fa5e7a3e56a (diff)
downloadlibffi-52fbd12dca1bddf0b135a24e7136f10af79a06bd.tar.gz
[Darwin-ppc, build] Fixes for clang build.
clang is experimental on powerpc-darwin, but the changes are appropriate to cctools as as well. Use the 'official' simplified cmpwi insn, rather than the implied one accepted by cctools. Do not re-use a set value.
Diffstat (limited to 'src')
-rw-r--r--src/powerpc/darwin_closure.S6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/powerpc/darwin_closure.S b/src/powerpc/darwin_closure.S
index c7734d4..3121e6a 100644
--- a/src/powerpc/darwin_closure.S
+++ b/src/powerpc/darwin_closure.S
@@ -353,7 +353,7 @@ Lret_type13:
bgt Lstructend ; not a special small case
b Lsmallstruct ; see if we need more.
#else
- cmpi 0,r0,4
+ cmpwi 0,r0,4
bgt Lfinish ; not by value
lg r3,0(r5)
b Lfinish
@@ -494,8 +494,8 @@ LSFDE1:
LASFDE1:
.long LASFDE1-EH_frame1 ; FDE CIE offset
.g_long Lstartcode-. ; FDE initial location
- .set L$set$3,LFE1-Lstartcode
- .g_long L$set$3 ; FDE address range
+ .set L$set$2,LFE1-Lstartcode
+ .g_long L$set$2 ; FDE address range
.byte 0x0 ; uleb128 0x0; Augmentation size
.byte 0x4 ; DW_CFA_advance_loc4
.set L$set$3,LCFI1-LCFI0