[all-commits] [llvm/llvm-project] 5a7a8f: [libc] fix type generic stdc_leading_zeros for GCC...

Nick Desaulniers via All-commits all-commits at lists.llvm.org
Mon Jan 29 16:40:16 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5a7a8f73c71b9aaf6d2f7cb548807046f19c4498
      https://github.com/llvm/llvm-project/commit/5a7a8f73c71b9aaf6d2f7cb548807046f19c4498
  Author: Nick Desaulniers <nickdesaulniers at users.noreply.github.com>
  Date:   2024-01-29 (Mon, 29 Jan 2024)

  Changed paths:
    M libc/include/llvm-libc-macros/stdbit-macros.h
    M libc/include/stdbit.h.def
    M libc/test/include/CMakeLists.txt

  Log Message:
  -----------
  [libc] fix type generic stdc_leading_zeros for GCC (#79917)

GCC does not support _Generic in C++ mode. Use inline function definitions with
function overloading in __cplusplus mode.




More information about the All-commits mailing list