Skip to content
This repository was archived by the owner on May 21, 2019. It is now read-only.

Commit 3bc0272

Browse files
authored
Merge pull request #26 from TimNN/arm-cc
powi only: don't override arm calling convention
2 parents ecd2b1f + 8250bd0 commit 3bc0272

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/builtins/int_lib.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
#if __ARM_EABI__
3333
# define ARM_EABI_FNALIAS(aeabi_name, name) \
3434
void __aeabi_##aeabi_name() __attribute__((alias("__" #name)));
35-
# define COMPILER_RT_ABI
35+
# define COMPILER_RT_ABI __attribute__((pcs("aapcs")))
3636
#else
3737
# define ARM_EABI_FNALIAS(aeabi_name, name)
3838
# define COMPILER_RT_ABI

lib/builtins/powidf2.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
/* Returns: a ^ b */
1818

19-
COMPILER_RT_ABI double
19+
double
2020
__powidf2(double a, si_int b)
2121
{
2222
const int recip = b < 0;

lib/builtins/powisf2.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
/* Returns: a ^ b */
1818

19-
COMPILER_RT_ABI float
19+
float
2020
__powisf2(float a, si_int b)
2121
{
2222
const int recip = b < 0;

0 commit comments

Comments
 (0)