Index: compiler-rt/lib/builtins/adddf3.c =================================================================== --- compiler-rt/lib/builtins/adddf3.c +++ compiler-rt/lib/builtins/adddf3.c @@ -24,6 +24,6 @@ return __adddf3(a, b); } #else -AEABI_RTABI double __aeabi_dadd(double a, double b) COMPILER_RT_ALIAS(__adddf3); +COMPILER_RT_ALIAS(__adddf3, __aeabi_dadd) #endif #endif Index: compiler-rt/lib/builtins/addsf3.c =================================================================== --- compiler-rt/lib/builtins/addsf3.c +++ compiler-rt/lib/builtins/addsf3.c @@ -24,6 +24,6 @@ return __addsf3(a, b); } #else -AEABI_RTABI float __aeabi_fadd(float a, float b) COMPILER_RT_ALIAS(__addsf3); +COMPILER_RT_ALIAS(__addsf3, __aeabi_fadd) #endif #endif Index: compiler-rt/lib/builtins/ashldi3.c =================================================================== --- compiler-rt/lib/builtins/ashldi3.c +++ compiler-rt/lib/builtins/ashldi3.c @@ -40,5 +40,5 @@ } #if defined(__ARM_EABI__) -AEABI_RTABI di_int __aeabi_llsl(di_int a, si_int b) COMPILER_RT_ALIAS(__ashldi3); +COMPILER_RT_ALIAS(__ashldi3, __aeabi_llsl) #endif Index: compiler-rt/lib/builtins/ashrdi3.c =================================================================== --- compiler-rt/lib/builtins/ashrdi3.c +++ compiler-rt/lib/builtins/ashrdi3.c @@ -41,5 +41,5 @@ } #if defined(__ARM_EABI__) -AEABI_RTABI di_int __aeabi_lasr(di_int a, si_int b) COMPILER_RT_ALIAS(__ashrdi3); +COMPILER_RT_ALIAS(__ashrdi3, __aeabi_lasr) #endif Index: compiler-rt/lib/builtins/comparedf2.c =================================================================== --- compiler-rt/lib/builtins/comparedf2.c +++ compiler-rt/lib/builtins/comparedf2.c @@ -81,8 +81,11 @@ #if defined(__ELF__) // Alias for libgcc compatibility -FNALIAS(__cmpdf2, __ledf2); +COMPILER_RT_ALIAS(__ledf2, __cmpdf2) #endif +COMPILER_RT_ALIAS(__ledf2, __eqdf2) +COMPILER_RT_ALIAS(__ledf2, __ltdf2) +COMPILER_RT_ALIAS(__ledf2, __nedf2) enum GE_RESULT { GE_LESS = -1, @@ -112,6 +115,8 @@ } } +COMPILER_RT_ALIAS(__gedf2, __gtdf2) + COMPILER_RT_ABI int __unorddf2(fp_t a, fp_t b) { const rep_t aAbs = toRep(a) & absMask; @@ -119,34 +124,12 @@ return aAbs > infRep || bAbs > infRep; } -// The following are alternative names for the preceding routines. - -COMPILER_RT_ABI enum LE_RESULT -__eqdf2(fp_t a, fp_t b) { - return __ledf2(a, b); -} - -COMPILER_RT_ABI enum LE_RESULT -__ltdf2(fp_t a, fp_t b) { - return __ledf2(a, b); -} - -COMPILER_RT_ABI enum LE_RESULT -__nedf2(fp_t a, fp_t b) { - return __ledf2(a, b); -} - -COMPILER_RT_ABI enum GE_RESULT -__gtdf2(fp_t a, fp_t b) { - return __gedf2(a, b); -} - #if defined(__ARM_EABI__) #if defined(COMPILER_RT_ARMHF_TARGET) AEABI_RTABI int __aeabi_dcmpun(fp_t a, fp_t b) { return __unorddf2(a, b); } #else -AEABI_RTABI int __aeabi_dcmpun(fp_t a, fp_t b) COMPILER_RT_ALIAS(__unorddf2); +COMPILER_RT_ALIAS(__unorddf2, __aeabi_dcmpun) #endif #endif Index: compiler-rt/lib/builtins/comparesf2.c =================================================================== --- compiler-rt/lib/builtins/comparesf2.c +++ compiler-rt/lib/builtins/comparesf2.c @@ -81,8 +81,11 @@ #if defined(__ELF__) // Alias for libgcc compatibility -FNALIAS(__cmpsf2, __lesf2); +COMPILER_RT_ALIAS(__lesf2, __cmpsf2) #endif +COMPILER_RT_ALIAS(__lesf2, __eqsf2) +COMPILER_RT_ALIAS(__lesf2, __ltsf2) +COMPILER_RT_ALIAS(__lesf2, __nesf2) enum GE_RESULT { GE_LESS = -1, @@ -112,6 +115,8 @@ } } +COMPILER_RT_ALIAS(__gesf2, __gtsf2) + COMPILER_RT_ABI int __unordsf2(fp_t a, fp_t b) { const rep_t aAbs = toRep(a) & absMask; @@ -119,34 +124,12 @@ return aAbs > infRep || bAbs > infRep; } -// The following are alternative names for the preceding routines. - -COMPILER_RT_ABI enum LE_RESULT -__eqsf2(fp_t a, fp_t b) { - return __lesf2(a, b); -} - -COMPILER_RT_ABI enum LE_RESULT -__ltsf2(fp_t a, fp_t b) { - return __lesf2(a, b); -} - -COMPILER_RT_ABI enum LE_RESULT -__nesf2(fp_t a, fp_t b) { - return __lesf2(a, b); -} - -COMPILER_RT_ABI enum GE_RESULT -__gtsf2(fp_t a, fp_t b) { - return __gesf2(a, b); -} - #if defined(__ARM_EABI__) #if defined(COMPILER_RT_ARMHF_TARGET) AEABI_RTABI int __aeabi_fcmpun(fp_t a, fp_t b) { return __unordsf2(a, b); } #else -AEABI_RTABI int __aeabi_fcmpun(fp_t a, fp_t b) COMPILER_RT_ALIAS(__unordsf2); +COMPILER_RT_ALIAS(__unordsf2, __aeabi_fcmpun) #endif #endif Index: compiler-rt/lib/builtins/comparetf2.c =================================================================== --- compiler-rt/lib/builtins/comparetf2.c +++ compiler-rt/lib/builtins/comparetf2.c @@ -80,8 +80,11 @@ #if defined(__ELF__) // Alias for libgcc compatibility -FNALIAS(__cmptf2, __letf2); +COMPILER_RT_ALIAS(__letf2, __cmptf2) #endif +COMPILER_RT_ALIAS(__letf2, __eqtf2) +COMPILER_RT_ALIAS(__letf2, __lttf2) +COMPILER_RT_ALIAS(__letf2, __netf2) enum GE_RESULT { GE_LESS = -1, @@ -110,28 +113,12 @@ } } +COMPILER_RT_ALIAS(__getf2, __gttf2) + COMPILER_RT_ABI int __unordtf2(fp_t a, fp_t b) { const rep_t aAbs = toRep(a) & absMask; const rep_t bAbs = toRep(b) & absMask; return aAbs > infRep || bAbs > infRep; } -// The following are alternative names for the preceding routines. - -COMPILER_RT_ABI enum LE_RESULT __eqtf2(fp_t a, fp_t b) { - return __letf2(a, b); -} - -COMPILER_RT_ABI enum LE_RESULT __lttf2(fp_t a, fp_t b) { - return __letf2(a, b); -} - -COMPILER_RT_ABI enum LE_RESULT __netf2(fp_t a, fp_t b) { - return __letf2(a, b); -} - -COMPILER_RT_ABI enum GE_RESULT __gttf2(fp_t a, fp_t b) { - return __getf2(a, b); -} - #endif Index: compiler-rt/lib/builtins/divdf3.c =================================================================== --- compiler-rt/lib/builtins/divdf3.c +++ compiler-rt/lib/builtins/divdf3.c @@ -199,6 +199,6 @@ return __divdf3(a, b); } #else -AEABI_RTABI fp_t __aeabi_ddiv(fp_t a, fp_t b) COMPILER_RT_ALIAS(__divdf3); +COMPILER_RT_ALIAS(__divdf3, __aeabi_ddiv) #endif #endif Index: compiler-rt/lib/builtins/divsf3.c =================================================================== --- compiler-rt/lib/builtins/divsf3.c +++ compiler-rt/lib/builtins/divsf3.c @@ -183,6 +183,6 @@ return __divsf3(a, b); } #else -AEABI_RTABI fp_t __aeabi_fdiv(fp_t a, fp_t b) COMPILER_RT_ALIAS(__divsf3); +COMPILER_RT_ALIAS(__divsf3, __aeabi_fdiv) #endif #endif Index: compiler-rt/lib/builtins/divsi3.c =================================================================== --- compiler-rt/lib/builtins/divsi3.c +++ compiler-rt/lib/builtins/divsi3.c @@ -34,5 +34,5 @@ } #if defined(__ARM_EABI__) -AEABI_RTABI si_int __aeabi_idiv(si_int a, si_int b) COMPILER_RT_ALIAS(__divsi3); +COMPILER_RT_ALIAS(__divsi3, __aeabi_idiv) #endif Index: compiler-rt/lib/builtins/extendhfsf2.c =================================================================== --- compiler-rt/lib/builtins/extendhfsf2.c +++ compiler-rt/lib/builtins/extendhfsf2.c @@ -27,6 +27,6 @@ return __extendhfsf2(a); } #else -AEABI_RTABI float __aeabi_h2f(uint16_t a) COMPILER_RT_ALIAS(__extendhfsf2); +COMPILER_RT_ALIAS(__extendhfsf2, __aeabi_h2f) #endif #endif Index: compiler-rt/lib/builtins/extendsfdf2.c =================================================================== --- compiler-rt/lib/builtins/extendsfdf2.c +++ compiler-rt/lib/builtins/extendsfdf2.c @@ -21,6 +21,6 @@ return __extendsfdf2(a); } #else -AEABI_RTABI double __aeabi_f2d(float a) COMPILER_RT_ALIAS(__extendsfdf2); +COMPILER_RT_ALIAS(__extendsfdf2, __aeabi_f2d) #endif #endif Index: compiler-rt/lib/builtins/fixdfdi.c =================================================================== --- compiler-rt/lib/builtins/fixdfdi.c +++ compiler-rt/lib/builtins/fixdfdi.c @@ -49,6 +49,6 @@ return __fixdfdi(a); } #else -AEABI_RTABI di_int __aeabi_d2lz(fp_t a) COMPILER_RT_ALIAS(__fixdfdi); +COMPILER_RT_ALIAS(__fixdfdi, __aeabi_d2lz) #endif #endif Index: compiler-rt/lib/builtins/fixdfsi.c =================================================================== --- compiler-rt/lib/builtins/fixdfsi.c +++ compiler-rt/lib/builtins/fixdfsi.c @@ -24,6 +24,6 @@ return __fixdfsi(a); } #else -AEABI_RTABI si_int __aeabi_d2iz(fp_t a) COMPILER_RT_ALIAS(__fixdfsi); +COMPILER_RT_ALIAS(__fixdfsi, __aeabi_d2iz) #endif #endif Index: compiler-rt/lib/builtins/fixsfdi.c =================================================================== --- compiler-rt/lib/builtins/fixsfdi.c +++ compiler-rt/lib/builtins/fixsfdi.c @@ -49,6 +49,6 @@ return __fixsfdi(a); } #else -AEABI_RTABI di_int __aeabi_f2lz(fp_t a) COMPILER_RT_ALIAS(__fixsfdi); +COMPILER_RT_ALIAS(__fixsfdi, __aeabi_f2lz) #endif #endif Index: compiler-rt/lib/builtins/fixsfsi.c =================================================================== --- compiler-rt/lib/builtins/fixsfsi.c +++ compiler-rt/lib/builtins/fixsfsi.c @@ -24,6 +24,6 @@ return __fixsfsi(a); } #else -AEABI_RTABI si_int __aeabi_f2iz(fp_t a) COMPILER_RT_ALIAS(__fixsfsi); +COMPILER_RT_ALIAS(__fixsfsi, __aeabi_f2iz) #endif #endif Index: compiler-rt/lib/builtins/fixunsdfdi.c =================================================================== --- compiler-rt/lib/builtins/fixunsdfdi.c +++ compiler-rt/lib/builtins/fixunsdfdi.c @@ -46,6 +46,6 @@ return __fixunsdfdi(a); } #else -AEABI_RTABI du_int __aeabi_d2ulz(fp_t a) COMPILER_RT_ALIAS(__fixunsdfdi); +COMPILER_RT_ALIAS(__fixunsdfdi, __aeabi_d2ulz) #endif #endif Index: compiler-rt/lib/builtins/fixunsdfsi.c =================================================================== --- compiler-rt/lib/builtins/fixunsdfsi.c +++ compiler-rt/lib/builtins/fixunsdfsi.c @@ -23,6 +23,6 @@ return __fixunsdfsi(a); } #else -AEABI_RTABI su_int __aeabi_d2uiz(fp_t a) COMPILER_RT_ALIAS(__fixunsdfsi); +COMPILER_RT_ALIAS(__fixunsdfsi, __aeabi_d2uiz) #endif #endif Index: compiler-rt/lib/builtins/fixunssfdi.c =================================================================== --- compiler-rt/lib/builtins/fixunssfdi.c +++ compiler-rt/lib/builtins/fixunssfdi.c @@ -47,6 +47,6 @@ return __fixunssfdi(a); } #else -AEABI_RTABI du_int __aeabi_f2ulz(fp_t a) COMPILER_RT_ALIAS(__fixunssfdi); +COMPILER_RT_ALIAS(__fixunssfdi, __aeabi_f2ulz) #endif #endif Index: compiler-rt/lib/builtins/fixunssfsi.c =================================================================== --- compiler-rt/lib/builtins/fixunssfsi.c +++ compiler-rt/lib/builtins/fixunssfsi.c @@ -27,6 +27,6 @@ return __fixunssfsi(a); } #else -AEABI_RTABI su_int __aeabi_f2uiz(fp_t a) COMPILER_RT_ALIAS(__fixunssfsi); +COMPILER_RT_ALIAS(__fixunssfsi, __aeabi_f2uiz) #endif #endif Index: compiler-rt/lib/builtins/floatdidf.c =================================================================== --- compiler-rt/lib/builtins/floatdidf.c +++ compiler-rt/lib/builtins/floatdidf.c @@ -109,6 +109,6 @@ return __floatdidf(a); } #else -AEABI_RTABI double __aeabi_l2d(di_int a) COMPILER_RT_ALIAS(__floatdidf); +COMPILER_RT_ALIAS(__floatdidf, __aeabi_l2d) #endif #endif Index: compiler-rt/lib/builtins/floatdisf.c =================================================================== --- compiler-rt/lib/builtins/floatdisf.c +++ compiler-rt/lib/builtins/floatdisf.c @@ -82,6 +82,6 @@ return __floatdisf(a); } #else -AEABI_RTABI float __aeabi_l2f(di_int a) COMPILER_RT_ALIAS(__floatdisf); +COMPILER_RT_ALIAS(__floatdisf, __aeabi_l2f) #endif #endif Index: compiler-rt/lib/builtins/floatsidf.c =================================================================== --- compiler-rt/lib/builtins/floatsidf.c +++ compiler-rt/lib/builtins/floatsidf.c @@ -55,6 +55,6 @@ return __floatsidf(a); } #else -AEABI_RTABI fp_t __aeabi_i2d(int a) COMPILER_RT_ALIAS(__floatsidf); +COMPILER_RT_ALIAS(__floatsidf, __aeabi_i2d) #endif #endif Index: compiler-rt/lib/builtins/floatsisf.c =================================================================== --- compiler-rt/lib/builtins/floatsisf.c +++ compiler-rt/lib/builtins/floatsisf.c @@ -61,6 +61,6 @@ return __floatsisf(a); } #else -AEABI_RTABI fp_t __aeabi_i2f(int a) COMPILER_RT_ALIAS(__floatsisf); +COMPILER_RT_ALIAS(__floatsisf, __aeabi_i2f) #endif #endif Index: compiler-rt/lib/builtins/floatundidf.c =================================================================== --- compiler-rt/lib/builtins/floatundidf.c +++ compiler-rt/lib/builtins/floatundidf.c @@ -108,6 +108,6 @@ return __floatundidf(a); } #else -AEABI_RTABI double __aeabi_ul2d(du_int a) COMPILER_RT_ALIAS(__floatundidf); +COMPILER_RT_ALIAS(__floatundidf, __aeabi_ul2d) #endif #endif Index: compiler-rt/lib/builtins/floatundisf.c =================================================================== --- compiler-rt/lib/builtins/floatundisf.c +++ compiler-rt/lib/builtins/floatundisf.c @@ -79,6 +79,6 @@ return __floatundisf(a); } #else -AEABI_RTABI float __aeabi_ul2f(du_int a) COMPILER_RT_ALIAS(__floatundisf); +COMPILER_RT_ALIAS(__floatundisf, __aeabi_ul2f) #endif #endif Index: compiler-rt/lib/builtins/floatunsidf.c =================================================================== --- compiler-rt/lib/builtins/floatunsidf.c +++ compiler-rt/lib/builtins/floatunsidf.c @@ -44,6 +44,6 @@ return __floatunsidf(a); } #else -AEABI_RTABI fp_t __aeabi_ui2d(unsigned int a) COMPILER_RT_ALIAS(__floatunsidf); +COMPILER_RT_ALIAS(__floatunsidf, __aeabi_ui2d) #endif #endif Index: compiler-rt/lib/builtins/floatunsisf.c =================================================================== --- compiler-rt/lib/builtins/floatunsisf.c +++ compiler-rt/lib/builtins/floatunsisf.c @@ -52,6 +52,6 @@ return __floatunsisf(a); } #else -AEABI_RTABI fp_t __aeabi_ui2f(unsigned int a) COMPILER_RT_ALIAS(__floatunsisf); +COMPILER_RT_ALIAS(__floatunsisf, __aeabi_ui2f) #endif #endif Index: compiler-rt/lib/builtins/int_lib.h =================================================================== --- compiler-rt/lib/builtins/int_lib.h +++ compiler-rt/lib/builtins/int_lib.h @@ -19,15 +19,6 @@ /* Assumption: Right shift of signed negative is arithmetic shift. */ /* Assumption: Endianness is little or big (not mixed). */ -#if defined(__ELF__) -#define FNALIAS(alias_name, original_name) \ - void alias_name() __attribute__((__alias__(#original_name))) -#define COMPILER_RT_ALIAS(aliasee) __attribute__((__alias__(#aliasee))) -#else -#define FNALIAS(alias, name) _Pragma("GCC error(\"alias unsupported on this file format\")") -#define COMPILER_RT_ALIAS(aliasee) _Pragma("GCC error(\"alias unsupported on this file format\")") -#endif - /* ABI macro definitions */ #if __ARM_EABI__ @@ -54,6 +45,24 @@ #define UNUSED __attribute__((unused)) #endif +#define STR(a) #a +#define XSTR(a) STR(a) +#define SYMBOL_NAME(name) XSTR(__USER_LABEL_PREFIX__) #name + +#if defined(__ELF__) || defined(__MINGW32__) || defined(__wasm__) +#define COMPILER_RT_ALIAS(name, aliasname) \ + COMPILER_RT_ABI __typeof(name) aliasname __attribute__((__alias__(#name))); +#elif defines(__MACH__) +#define COMPILER_RT_ALIAS(name, aliasname) \ + __asm__(".globl " SYMBOL_NAME(aliasname)); \ + __asm__(SYMBOL_NAME(aliasname) " = " SYMBOL_NAME(name)) \ + COMPILER_RT_ABI __typeof(name) aliasname; +#elif defined(_WIN32) +#define COMPILER_RT_ALIAS(name, aliasname) +#else +#error Unsupported target +#endif + #if defined(__NetBSD__) && (defined(_KERNEL) || defined(_STANDALONE)) /* * Kernel and boot environment can't use normal headers, Index: compiler-rt/lib/builtins/lshrdi3.c =================================================================== --- compiler-rt/lib/builtins/lshrdi3.c +++ compiler-rt/lib/builtins/lshrdi3.c @@ -40,5 +40,5 @@ } #if defined(__ARM_EABI__) -AEABI_RTABI di_int __aeabi_llsr(di_int a, si_int b) COMPILER_RT_ALIAS(__lshrdi3); +COMPILER_RT_ALIAS(__lshrdi3, __aeabi_llsr) #endif Index: compiler-rt/lib/builtins/muldf3.c =================================================================== --- compiler-rt/lib/builtins/muldf3.c +++ compiler-rt/lib/builtins/muldf3.c @@ -24,6 +24,6 @@ return __muldf3(a, b); } #else -AEABI_RTABI fp_t __aeabi_dmul(fp_t a, fp_t b) COMPILER_RT_ALIAS(__muldf3); +COMPILER_RT_ALIAS(__muldf3, __aeabi_dmul) #endif #endif Index: compiler-rt/lib/builtins/muldi3.c =================================================================== --- compiler-rt/lib/builtins/muldi3.c +++ compiler-rt/lib/builtins/muldi3.c @@ -53,5 +53,5 @@ } #if defined(__ARM_EABI__) -AEABI_RTABI di_int __aeabi_lmul(di_int a, di_int b) COMPILER_RT_ALIAS(__muldi3); +COMPILER_RT_ALIAS(__muldi3, __aeabi_lmul) #endif Index: compiler-rt/lib/builtins/mulsf3.c =================================================================== --- compiler-rt/lib/builtins/mulsf3.c +++ compiler-rt/lib/builtins/mulsf3.c @@ -24,6 +24,6 @@ return __mulsf3(a, b); } #else -AEABI_RTABI fp_t __aeabi_fmul(fp_t a, fp_t b) COMPILER_RT_ALIAS(__mulsf3); +COMPILER_RT_ALIAS(__mulsf3, __aeabi_fmul) #endif #endif Index: compiler-rt/lib/builtins/negdf2.c =================================================================== --- compiler-rt/lib/builtins/negdf2.c +++ compiler-rt/lib/builtins/negdf2.c @@ -24,6 +24,6 @@ return __negdf2(a); } #else -AEABI_RTABI fp_t __aeabi_dneg(fp_t a) COMPILER_RT_ALIAS(__negdf2); +COMPILER_RT_ALIAS(__negdf2, __aeabi_dneg) #endif #endif Index: compiler-rt/lib/builtins/negsf2.c =================================================================== --- compiler-rt/lib/builtins/negsf2.c +++ compiler-rt/lib/builtins/negsf2.c @@ -24,6 +24,6 @@ return __negsf2(a); } #else -AEABI_RTABI fp_t __aeabi_fneg(fp_t a) COMPILER_RT_ALIAS(__negsf2); +COMPILER_RT_ALIAS(__negsf2, __aeabi_fneg) #endif #endif Index: compiler-rt/lib/builtins/subdf3.c =================================================================== --- compiler-rt/lib/builtins/subdf3.c +++ compiler-rt/lib/builtins/subdf3.c @@ -26,6 +26,6 @@ return __subdf3(a, b); } #else -AEABI_RTABI fp_t __aeabi_dsub(fp_t a, fp_t b) COMPILER_RT_ALIAS(__subdf3); +COMPILER_RT_ALIAS(__subdf3, __aeabi_dsub) #endif #endif Index: compiler-rt/lib/builtins/subsf3.c =================================================================== --- compiler-rt/lib/builtins/subsf3.c +++ compiler-rt/lib/builtins/subsf3.c @@ -26,6 +26,6 @@ return __subsf3(a, b); } #else -AEABI_RTABI fp_t __aeabi_fsub(fp_t a, fp_t b) COMPILER_RT_ALIAS(__subsf3); +COMPILER_RT_ALIAS(__subsf3, __aeabi_fsub) #endif #endif Index: compiler-rt/lib/builtins/truncdfhf2.c =================================================================== --- compiler-rt/lib/builtins/truncdfhf2.c +++ compiler-rt/lib/builtins/truncdfhf2.c @@ -20,6 +20,6 @@ return __truncdfhf2(a); } #else -AEABI_RTABI uint16_t __aeabi_d2h(double a) COMPILER_RT_ALIAS(__truncdfhf2); +COMPILER_RT_ALIAS(__truncdfhf2, __aeabi_d2h) #endif #endif Index: compiler-rt/lib/builtins/truncdfsf2.c =================================================================== --- compiler-rt/lib/builtins/truncdfsf2.c +++ compiler-rt/lib/builtins/truncdfsf2.c @@ -20,6 +20,6 @@ return __truncdfsf2(a); } #else -AEABI_RTABI float __aeabi_d2f(double a) COMPILER_RT_ALIAS(__truncdfsf2); +COMPILER_RT_ALIAS(__truncdfsf2, __aeabi_d2f) #endif #endif Index: compiler-rt/lib/builtins/truncsfhf2.c =================================================================== --- compiler-rt/lib/builtins/truncsfhf2.c +++ compiler-rt/lib/builtins/truncsfhf2.c @@ -26,6 +26,6 @@ return __truncsfhf2(a); } #else -AEABI_RTABI uint16_t __aeabi_f2h(float a) COMPILER_RT_ALIAS(__truncsfhf2); +COMPILER_RT_ALIAS(__truncsfhf2, __aeabi_f2h) #endif #endif Index: compiler-rt/lib/builtins/udivsi3.c =================================================================== --- compiler-rt/lib/builtins/udivsi3.c +++ compiler-rt/lib/builtins/udivsi3.c @@ -63,5 +63,5 @@ } #if defined(__ARM_EABI__) -AEABI_RTABI su_int __aeabi_uidiv(su_int n, su_int d) COMPILER_RT_ALIAS(__udivsi3); +COMPILER_RT_ALIAS(__udivsi3, __aeabi_uidiv) #endif