[libc-commits] [libc] [libc] Fix accidental LIBC_NAMESPACE_syscall definition (PR #69548)

via libc-commits libc-commits at lists.llvm.org
Wed Oct 18 18:12:48 PDT 2023


alfredfo wrote:

```libc % grep -rsin "LIBC_NAMESPACE_"
src/time/gpu/time_utils.cpp:19:    [[clang::address_space(4)]] LIBC_NAMESPACE_clock_freq = clock_freq;
src/time/gpu/time_utils.h:42:    [[clang::address_space(4)]] LIBC_NAMESPACE_clock_freq;
src/time/gpu/time_utils.h:43:#define GPU_CLOCKS_PER_SEC static_cast<clock_t>(LIBC_NAMESPACE_clock_freq)
startup/gpu/amdgpu/start.cpp:22:    [[clang::address_space(4)]] LIBC_NAMESPACE_clock_freq = 0;
test/UnitTest/LibcTest.cpp:26:    [[clang::address_space(4)]] LIBC_NAMESPACE_clock_freq;
test/UnitTest/LibcTest.cpp:27:#define CLOCKS_PER_SEC LIBC_NAMESPACE_clock_freq
utils/gpu/loader/amdgpu/Loader.cpp:480:      hsa_executable_get_symbol_by_name(executable, "LIBC_NAMESPACE_clock_freq",``` I think these are also accidental

https://github.com/llvm/llvm-project/pull/69548


More information about the libc-commits mailing list