[libc-commits] [libc] [libc] fortify jmp buffer for x86-64 (PR #112769)

Nick Desaulniers via libc-commits libc-commits at lists.llvm.org
Mon Dec 2 13:23:23 PST 2024


================
@@ -0,0 +1,24 @@
+add_entrypoint_object(
+  setjmp
+  SRCS
+    setjmp.cpp
+  HDRS
+    ../setjmp_impl.h
+  DEPENDS
+    libc.hdr.types.jmp_buf
+  COMPILE_OPTIONS
+    -O3
+)
+
+add_entrypoint_object(
+  longjmp
+  SRCS
+    longjmp.cpp
+  HDRS
+    ../longjmp.h
+  DEPENDS
+    libc.hdr.types.jmp_buf
+  COMPILE_OPTIONS
+    -O3
----------------
nickdesaulniers wrote:

Do you want to make these `-O3`'s `libc_opt_high_flag` after #117638?

https://github.com/llvm/llvm-project/pull/112769


More information about the libc-commits mailing list