summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDerek Schuff <dschuff@google.com>2013-06-14 16:15:29 +0000
committerDerek Schuff <dschuff@google.com>2013-06-14 16:15:29 +0000
commit8a0d41e1a649c32e1f0e22c6c201a2e0d8463e30 (patch)
treea7de62d1e90c8cec19f2fdd9378ebc25ce9f5ce7 /include
parent80cecc8c6091b03905cdd35c4c374c20ad0702c1 (diff)
downloadllvm-8a0d41e1a649c32e1f0e22c6c201a2e0d8463e30.tar.gz
llvm-8a0d41e1a649c32e1f0e22c6c201a2e0d8463e30.tar.bz2
llvm-8a0d41e1a649c32e1f0e22c6c201a2e0d8463e30.tar.xz
Make PrologEpilogInserter save/restore all callee saved registers
in functions which call __builtin_unwind_init() __builtin_unwind_init() is an undocumented gcc intrinsic which has this effect, and is used in libgcc_eh. Goes part of the way toward fixing PR8541. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183984 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/IR/Intrinsics.td3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/IR/Intrinsics.td b/include/llvm/IR/Intrinsics.td
index e252664e45..6530187663 100644
--- a/include/llvm/IR/Intrinsics.td
+++ b/include/llvm/IR/Intrinsics.td
@@ -347,6 +347,9 @@ def int_eh_typeid_for : Intrinsic<[llvm_i32_ty], [llvm_ptr_ty], [IntrNoMem]>;
def int_eh_return_i32 : Intrinsic<[], [llvm_i32_ty, llvm_ptr_ty]>;
def int_eh_return_i64 : Intrinsic<[], [llvm_i64_ty, llvm_ptr_ty]>;
+// __builtin_unwind_init is an undocumented GCC intrinsic that causes all
+// callee-saved registers to be saved and restored (regardless of whether they
+// are used) in the calling function. It is used by libgcc_eh.
def int_eh_unwind_init: Intrinsic<[]>,
GCCBuiltin<"__builtin_unwind_init">;