diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2015-08-21 04:39:52 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2015-08-21 04:39:52 +0000 |
commit | d3a8aba4e20d86187867fc360eebeb09da929533 (patch) | |
tree | 6805830b2cf58ec1df2810031132a4c2ad789687 /lib/builtins/comparedf2.c | |
parent | c852516dc611dbee4f18683fb16bb96b53211690 (diff) |
builtins: restrict aliases
MachO and COFF do not support aliases. Restrict the alias to ELF targets. This
should also fix the Darwin build. Make the FNALIAS usage an error on non-ELF
targets.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@245669 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/builtins/comparedf2.c')
-rw-r--r-- | lib/builtins/comparedf2.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/builtins/comparedf2.c b/lib/builtins/comparedf2.c index 9d5330c23..9e2975223 100644 --- a/lib/builtins/comparedf2.c +++ b/lib/builtins/comparedf2.c @@ -80,8 +80,10 @@ __ledf2(fp_t a, fp_t b) { } } +#if defined(__ELF__) // Alias for libgcc compatibility FNALIAS(__cmpdf2, __ledf2); +#endif enum GE_RESULT { GE_LESS = -1, |