diff options
| author | Martin Storsjo <martin@martin.st> | 2019-05-03 07:43:23 +0000 |
|---|---|---|
| committer | Martin Storsjo <martin@martin.st> | 2019-05-03 07:43:23 +0000 |
| commit | b1f39102838363054361df630dafcc00d3348395 (patch) | |
| tree | e21c6f3a16006747255fab25f14c7abdd1d75e58 /compiler-rt/lib/builtins/comparedf2.c | |
| parent | 8cd01e69d8eeb322605c0a30a165b79f06daf63d (diff) | |
| download | bcm5719-llvm-b1f39102838363054361df630dafcc00d3348395.tar.gz bcm5719-llvm-b1f39102838363054361df630dafcc00d3348395.zip | |
Avoid duplicate function aliases on MinGW after SVN r359835
On MinGW, the same alias mechanism as for ELF, using
__attribute__((__alias__())), is used.
llvm-svn: 359865
Diffstat (limited to 'compiler-rt/lib/builtins/comparedf2.c')
| -rw-r--r-- | compiler-rt/lib/builtins/comparedf2.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler-rt/lib/builtins/comparedf2.c b/compiler-rt/lib/builtins/comparedf2.c index 9f059785a06..58290d87de6 100644 --- a/compiler-rt/lib/builtins/comparedf2.c +++ b/compiler-rt/lib/builtins/comparedf2.c @@ -141,8 +141,9 @@ COMPILER_RT_ALIAS(__unorddf2, __aeabi_dcmpun) #endif #endif -#if defined(_WIN32) -// The alias mechanism doesn't work on Windows, so emit wrapper functions. +#if defined(_WIN32) && !defined(__MINGW32__) +// The alias mechanism doesn't work on Windows except for MinGW, so emit +// wrapper functions. int __eqdf2(fp_t a, fp_t b) { return __ledf2(a, b); } int __ltdf2(fp_t a, fp_t b) { return __ledf2(a, b); } int __nedf2(fp_t a, fp_t b) { return __ledf2(a, b); } |

