diff options
author | 2017-12-26 20:59:44 +0000 | |
---|---|---|
committer | 2017-12-26 20:59:44 +0000 | |
commit | c72a1c0960669bfd1eb87723f902bc05ee727707 (patch) | |
tree | 46e715b14e68651d2b18adda557278098e9bb0d4 /lib/libcompiler_rt/int_util.c | |
parent | Cherry-pick a change from LLVM that marks specific pseudo memory (diff) | |
download | wireguard-openbsd-c72a1c0960669bfd1eb87723f902bc05ee727707.tar.xz wireguard-openbsd-c72a1c0960669bfd1eb87723f902bc05ee727707.zip |
Update to compiler-rt 5.0.1.
ok kettenis@
Diffstat (limited to 'lib/libcompiler_rt/int_util.c')
-rw-r--r-- | lib/libcompiler_rt/int_util.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/libcompiler_rt/int_util.c b/lib/libcompiler_rt/int_util.c index 420d1e237aa..de87410dbca 100644 --- a/lib/libcompiler_rt/int_util.c +++ b/lib/libcompiler_rt/int_util.c @@ -45,6 +45,16 @@ void compilerrt_abort_impl(const char *file, int line, const char *function) { __assert_rtn(function, file, line, "libcompiler_rt abort"); } +#elif __Fuchsia__ + +#ifndef _WIN32 +__attribute__((weak)) +__attribute__((visibility("hidden"))) +#endif +void compilerrt_abort_impl(const char *file, int line, const char *function) { + __builtin_trap(); +} + #else /* Get the system definition of abort() */ |