[all-commits] [llvm/llvm-project] 373d87: [cfi][CodeGen] Call SetLLVMFunctionAttributes{, For...

Pavel Kosov via All-commits all-commits at lists.llvm.org
Tue Mar 26 17:25:56 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 373d8755140df0c760e9c292c5f88479cdda6f4c
      https://github.com/llvm/llvm-project/commit/373d8755140df0c760e9c292c5f88479cdda6f4c
  Author: Pavel Kosov <kpdev42 at gmail.com>
  Date:   2024-03-27 (Wed, 27 Mar 2024)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/CodeGen/CGExpr.cpp
    A clang/test/CodeGen/cfi-check-attrs.c
    M clang/test/CodeGen/cfi-check-fail.c

  Log Message:
  -----------
  [cfi][CodeGen] Call SetLLVMFunctionAttributes{,ForDefinition} on __cf… (#78253)

…i_check

This causes __cfi_check, just as __cfi_check_fail, to get the proper
target-specific attributes, in particular uwtable for unwind table
generation. Previously, nounwind attribute could be inferred for
__cfi_check, which caused it to lose its unwind table even with
-funwind-table option.

~~

Huawei RRI, OS Lab

Co-authored-by: Nikolai Kholiavin <kholiavin.nikolai at huawei-partners.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