summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/int_util.c
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2013-07-16 22:37:55 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2013-07-16 22:37:55 +0000
commitec42bd9700474a1bb0cae193e5f968592f70f8c0 (patch)
tree83d3ec39c2967580dfd20ddc8c794dfa58bf91af /compiler-rt/lib/int_util.c
parent884bee86a6fb4ac301a84f9981c287723cabd1bc (diff)
downloadbcm5719-llvm-ec42bd9700474a1bb0cae193e5f968592f70f8c0.tar.gz
bcm5719-llvm-ec42bd9700474a1bb0cae193e5f968592f70f8c0.zip
Give compiler-rt a chance to compile with mingw-w64.
Patch by C. Bergström! llvm-svn: 186463
Diffstat (limited to 'compiler-rt/lib/int_util.c')
-rw-r--r--compiler-rt/lib/int_util.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler-rt/lib/int_util.c b/compiler-rt/lib/int_util.c
index 871d191658c..6d8922a7da4 100644
--- a/compiler-rt/lib/int_util.c
+++ b/compiler-rt/lib/int_util.c
@@ -24,7 +24,9 @@
#ifdef KERNEL_USE
extern void panic(const char *, ...) __attribute__((noreturn));
+#ifndef _WIN32
__attribute__((visibility("hidden")))
+#endif
void compilerrt_abort_impl(const char *file, int line, const char *function) {
panic("%s:%d: abort in %s", file, line, function);
}
@@ -35,8 +37,10 @@ void compilerrt_abort_impl(const char *file, int line, const char *function) {
extern void __assert_rtn(const char *func, const char *file,
int line, const char * message) __attribute__((noreturn));
+#ifndef _WIN32
__attribute__((weak))
__attribute__((visibility("hidden")))
+#endif
void compilerrt_abort_impl(const char *file, int line, const char *function) {
__assert_rtn(function, file, line, "libcompiler_rt abort");
}
@@ -47,8 +51,10 @@ void compilerrt_abort_impl(const char *file, int line, const char *function) {
/* Get the system definition of abort() */
#include <stdlib.h>
+#ifndef _WIN32
__attribute__((weak))
__attribute__((visibility("hidden")))
+#endif
void compilerrt_abort_impl(const char *file, int line, const char *function) {
abort();
}
OpenPOWER on IntegriCloud