We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 519fcc5 commit cef2539Copy full SHA for cef2539
libc/src/setjmp/setjmp_impl.h
@@ -17,6 +17,15 @@
17
18
namespace LIBC_NAMESPACE_DECL {
19
20
+// TODO(https://github.com/llvm/llvm-project/issues/112427)
21
+// Some of the architecture-specific definitions are marked `naked`, which in
22
+// GCC implies `nothrow`.
23
+//
24
+// Right now, our aliases aren't marked `nothrow`, so we wind up in a situation
25
+// where clang will emit -Wmissing-exception-spec if we add `nothrow` here, but
26
+// GCC will emit -Wmissing-attributes here without `nothrow`. We need to update
27
+// LLVM_LIBC_FUNCTION to denote when a function throws or not.
28
+
29
#ifdef LIBC_COMPILER_IS_GCC
30
[[gnu::nothrow]]
31
#endif
0 commit comments