summaryrefslogtreecommitdiff
path: root/lib/int_lib.h
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2011-11-15 18:34:44 +0000
committerDaniel Dunbar <daniel@zuster.org>2011-11-15 18:34:44 +0000
commit0ae9d258a484ba5ede154f729660ad21bd0ade2e (patch)
treef931e7cca15bdcda47781fb47705a1ef5a79a497 /lib/int_lib.h
parent5e06e18068122930df7295fa9ddc03ba41c702d8 (diff)
downloadcompiler-rt-0ae9d258a484ba5ede154f729660ad21bd0ade2e.tar.gz
compiler-rt-0ae9d258a484ba5ede154f729660ad21bd0ade2e.tar.bz2
compiler-rt-0ae9d258a484ba5ede154f729660ad21bd0ade2e.tar.xz
lib: Integrate abi.h into int_lib.h, there aren't good enough reasons for this extra complexity.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@144660 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/int_lib.h')
-rw-r--r--lib/int_lib.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/int_lib.h b/lib/int_lib.h
index e1fd6b73..27d01fdb 100644
--- a/lib/int_lib.h
+++ b/lib/int_lib.h
@@ -16,6 +16,17 @@
#ifndef INT_LIB_H
#define INT_LIB_H
+/* ABI macro definitions */
+
+#if __ARM_EABI__
+# define ARM_EABI_FNALIAS(aeabi_name, name) \
+ void __aeabi_##aeabi_name() __attribute__((alias("__" #name)));
+# define COMPILER_RT_ABI __attribute__((pcs("aapcs")))
+#else
+# define ARM_EABI_FNALIAS(aeabi_name, name)
+# define COMPILER_RT_ABI
+#endif
+
/* Assumption: signed integral is 2's complement */
/* Assumption: right shift of signed negative is arithmetic shift */