[all-commits] [llvm/llvm-project] 4010e0: [libc] Use __attribute__((__noreturn__)) for _Nore...

Roland McGrath via All-commits all-commits at lists.llvm.org
Thu Jan 2 16:57:52 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4010e0c45b87e4d073c407cae787e96d4808ad36
      https://github.com/llvm/llvm-project/commit/4010e0c45b87e4d073c407cae787e96d4808ad36
  Author: Roland McGrath <mcgrathr at google.com>
  Date:   2025-01-02 (Thu, 02 Jan 2025)

  Changed paths:
    M libc/include/__llvm-libc-common.h

  Log Message:
  -----------
  [libc] Use __attribute__((__noreturn__)) for _Noreturn in C < 11 (#121252)

When in modes like C99, the _Noreturn keyword is not available in
C.  But GNU-compatible compilers have a `noreturn` attribute with
the same effect on function declarations.



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