[libc-commits] [libc] [libc] Fix linking of AMDGPU device runtime control constants for math (PR #65676)

Siva Chandra via libc-commits libc-commits at lists.llvm.org
Thu Sep 14 07:45:54 PDT 2023


================
@@ -19,96 +19,106 @@ namespace __llvm_libc {
 extern "C" {
 
 // Disable unsafe math optimizations in the implementation.
-extern const uint8_t __oclc_unsafe_math_opt = 0;
+extern const inline uint8_t __oclc_unsafe_math_opt = 0;
----------------
sivachandra wrote:

Use `LIBC_INLINE_VAR` here and elsewhere: https://github.com/llvm/llvm-project/blob/main/libc/src/__support/macros/attributes.h#L23

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


More information about the libc-commits mailing list