[all-commits] [llvm/llvm-project] eb9844: [clang][ARM] Use sponentry for setjmp on Windows A...

Hamed via All-commits all-commits at lists.llvm.org
Sat Sep 12 13:26:25 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: eb9844b5ceee01c9d9fad92cbcd027c5798c5ed4
      https://github.com/llvm/llvm-project/commit/eb9844b5ceee01c9d9fad92cbcd027c5798c5ed4
  Author: Hamed <hamedghorbani17 at live.com>
  Date:   2026-09-12 (Sat, 12 Sep 2026)

  Changed paths:
    M clang/docs/ReleaseNotes.md
    M clang/lib/CodeGen/CGBuiltin.cpp
    M clang/test/CodeGen/ms-setjmp.c

  Log Message:
  -----------
  [clang][ARM] Use sponentry for setjmp on Windows ARM32 (#222366)

On Windows, _setjmp and _setjmpex take a second argument, the frame,
which the CRT stores in the jmp_buf and which longjmp later hands to
RtlUnwindEx as the frame to unwind. On aarch64, this is the stack pointer
on entry to the function, while x86_64 takes the function frame address.
ARM expects the same as aarch64 here, the stack pointer on entry.

Assisted-by: Claude Opus 5 (Anthropic)



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list