Author: Dominik Adamski
Date: 2025-11-07T19:36:42+01:00
New Revision: 67198d1997cfb88f73e3db540011cc67cf083f1c

URL: 
https://github.com/llvm/llvm-project/commit/67198d1997cfb88f73e3db540011cc67cf083f1c
DIFF: 
https://github.com/llvm/llvm-project/commit/67198d1997cfb88f73e3db540011cc67cf083f1c.diff

LOG: [libc]  Fix wrapper headers for `at_quick_exit` on GLIBC for C++11 
(#166960)

Eliminate compilation error related to missing exception specification
'noexcept(true)' for at_quick_exit function in C++11.

Added: 
    

Modified: 
    clang/lib/Headers/llvm_libc_wrappers/stdlib.h

Removed: 
    


################################################################################
diff  --git a/clang/lib/Headers/llvm_libc_wrappers/stdlib.h 
b/clang/lib/Headers/llvm_libc_wrappers/stdlib.h
index 1da22abd0bc48..d79e7fa041ad4 100644
--- a/clang/lib/Headers/llvm_libc_wrappers/stdlib.h
+++ b/clang/lib/Headers/llvm_libc_wrappers/stdlib.h
@@ -34,13 +34,13 @@ _Static_assert(__builtin_offsetof(div_t, quot) == 0, "ABI 
mismatch!");
 _Static_assert(__builtin_offsetof(ldiv_t, quot) == 0, "ABI mismatch!");
 _Static_assert(__builtin_offsetof(lldiv_t, quot) == 0, "ABI mismatch!");
 
-#if defined(__GLIBC__) && __cplusplus >= 201703L
+#if defined(__GLIBC__) && __cplusplus >= 201103L
 #define at_quick_exit atexit
 #endif
 
 #include <llvm-libc-decls/stdlib.h>
 
-#if defined(__GLIBC__) && __cplusplus >= 201703L
+#if defined(__GLIBC__) && __cplusplus >= 201103L
 #undef at_quick_exit
 #endif
 


        
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to