[all-commits] [llvm/llvm-project] f3d575: [libc] Fix the wrapper headers for 'toupper' and '...

Joseph Huber via All-commits all-commits at lists.llvm.org
Tue Nov 14 09:53:10 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f3d57583b4942056a930b6f1e4101063637e9e98
      https://github.com/llvm/llvm-project/commit/f3d57583b4942056a930b6f1e4101063637e9e98
  Author: Joseph Huber <huberjn at outlook.com>
  Date:   2023-11-14 (Tue, 14 Nov 2023)

  Changed paths:
    M clang/lib/Headers/llvm_libc_wrappers/ctype.h

  Log Message:
  -----------
  [libc] Fix the wrapper headers for 'toupper' and 'tolower'

Summary:
The GNU headers like to reassign this function to a new function which
the optimizer will pick up unless compiling with `O0`. This uses an
external LUT which we don't have and fails to link. This patch makes
sure that the GPU portion does not include these extra definitions and
we only use the ones we support. It's hacky, but it's the only way to
disable it.




More information about the All-commits mailing list