[PATCH] D136317: Avoid inline optimization for unwind_phase2 and unwind_phase2_forced

xiongji90 via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 19 23:03:46 PDT 2022


xiongji90 updated this revision to Diff 469119.

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D136317/new/

https://reviews.llvm.org/D136317

Files:
  libunwind/src/UnwindLevel1.c


Index: libunwind/src/UnwindLevel1.c
===================================================================
--- libunwind/src/UnwindLevel1.c
+++ libunwind/src/UnwindLevel1.c
@@ -167,6 +167,9 @@
 }
 extern int __unw_step_stage2(unw_cursor_t *);
 
+#if defined(_LIBUNWIND_USE_CET)
+__attribute__((noinline))
+#endif
 static _Unwind_Reason_Code
 unwind_phase2(unw_context_t *uc, unw_cursor_t *cursor, _Unwind_Exception *exception_object) {
   __unw_init_local(cursor, uc);
@@ -286,6 +289,9 @@
   return _URC_FATAL_PHASE2_ERROR;
 }
 
+#if defined(_LIBUNWIND_USE_CET)
+__attribute__((noinline))
+#endif
 static _Unwind_Reason_Code
 unwind_phase2_forced(unw_context_t *uc, unw_cursor_t *cursor,
                      _Unwind_Exception *exception_object,


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D136317.469119.patch
Type: text/x-patch
Size: 744 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221020/3f8a2947/attachment.bin>


More information about the llvm-commits mailing list