[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 22:55:26 PDT 2022


xiongji90 updated this revision to Diff 469118.

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
@@ -168,10 +168,9 @@
 extern int __unw_step_stage2(unw_cursor_t *);
 
 #if defined(_LIBUNWIND_USE_CET)
-static _Unwind_Reason_Code __attribute__((noinline))
-#else
-static _Unwind_Reason_Code
+__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);
 
@@ -291,10 +290,9 @@
 }
 
 #if defined(_LIBUNWIND_USE_CET)
-static _Unwind_Reason_Code __attribute__((noinline))
-#else
-static _Unwind_Reason_Code
+__attribute__((noinline))
 #endif
+static _Unwind_Reason_Code
 unwind_phase2_forced(unw_context_t *uc, unw_cursor_t *cursor,
                      _Unwind_Exception *exception_object,
                      _Unwind_Stop_Fn stop, void *stop_parameter) {


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


More information about the llvm-commits mailing list