[all-commits] [llvm/llvm-project] 802337: [libc][NFC] add remarks to the setjmp implementati...

Schrodinger ZHU Yifan via All-commits all-commits at lists.llvm.org
Thu May 1 07:41:58 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 80233751f9f3c9c8c5b1d66cd93399615f4d3ba2
      https://github.com/llvm/llvm-project/commit/80233751f9f3c9c8c5b1d66cd93399615f4d3ba2
  Author: Schrodinger ZHU Yifan <yifanzhu at rochester.edu>
  Date:   2025-05-01 (Thu, 01 May 2025)

  Changed paths:
    M libc/src/setjmp/x86_64/setjmp.cpp

  Log Message:
  -----------
  [libc][NFC] add remarks to the setjmp implementation (#137066)

We use naked functions to avoid compiler-generated prologue and
epilogue.

Despite GCC documentation listing this as an unsupported case for
extended asm, the generated code is not wrong as we only pass in
constant operands to extended asm.

See https://github.com/llvm/llvm-project/issues/137055 for related
remarks.

---------

Co-authored-by: Copilot <175728472+Copilot at users.noreply.github.com>



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