-
Notifications
You must be signed in to change notification settings - Fork 14.2k
[libc] add stdlib.h header to the _Exit func proxy in full build #114718
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@llvm/pr-subscribers-libc Author: Job Henandez Lara (Jobhdez) ChangesFull diff: https://github.com/llvm/llvm-project/pull/114718.diff 1 Files Affected:
diff --git a/libc/hdr/func/_Exit.h b/libc/hdr/func/_Exit.h
index 575b0426e508c6..e024a651a50bcf 100644
--- a/libc/hdr/func/_Exit.h
+++ b/libc/hdr/func/_Exit.h
@@ -10,7 +10,8 @@
#define LLVM_LIBC_HDR_FUNC_EXIT_H
#ifdef LIBC_FULL_BUILD
-extern "C" void _Exit(int);
+// We will use the `_Exit` declaration from our generated stdlib.h
+#include <stdlib.h>
#else // Overlay mode
|
Do you have more info about this change? Why not just provide the declaration here? |
the previous declaration was conflicted with the one generated in our stdlib.h:
Should we remove |
I would expect So it's not clear to my why glibc does not mark it's |
extern void _Exit (int __status) __THROW __attribute__ ((__noreturn__)); is what my glibc host's headers have. # define __THROW __attribute__ ((__nothrow__ __LEAF)) so glibc's regardless, the warning is about |
So do you want me to do a quick pr and add this to the proxy
Can you please confirm if this declaration is the right one. Thanks |
don't forget the [[noreturn]] void _Exit(int) noexcept; but yeah, I'd approve such a PR. |
Ok will do this now |
…nd use LIBC_NAMESPACE::_Exit in tests (#114904) This improves/fixes this pr llvm/llvm-project#114718. In this PR we removed the _Exit proxy func because it was not needed. Instead we used `LIBC_NAMESPACE::_Exit` GitOrigin-RevId: e71903630a42d9d22f68634f2f833cfbc4c82572 Original-Revision: 7a1d7e7fcd4655b6f2b7efe120e442734a8d20bd Change-Id: I30d44087e7ed9f28ccbb61b799854bbf2c5a2dbc
…ve _Exit proxy func header and use LIBC_NAMESPACE::_Exit in tests (#114904) This improves/fixes this pr llvm/llvm-project#114718. In this PR we removed the _Exit proxy func because it was not needed. Instead we used `LIBC_NAMESPACE::_Exit` GitOrigin-RevId: 0b99129c6f14da2553ea6702291f56ef858a1aac Original-Revision: 7a1d7e7fcd4655b6f2b7efe120e442734a8d20bd Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1153254 Original-Revision: 03a718a6745a6fcd6aed461d69e6f1eaf4a04740 Change-Id: Ia6da8c64fd00a2a008200142f80a69cb9bd6a672
…header and use LIBC_NAMESPACE::_Exit in tests (#114904) This improves/fixes this pr llvm/llvm-project#114718. In this PR we removed the _Exit proxy func because it was not needed. Instead we used `LIBC_NAMESPACE::_Exit` GitOrigin-RevId: e71903630a42d9d22f68634f2f833cfbc4c82572 Original-Revision: 7a1d7e7fcd4655b6f2b7efe120e442734a8d20bd Roller-URL: https://cr-buildbucket.appspot.com/build/8731899817509253313 CQ-Do-Not-Cancel-Tryjobs: true Change-Id: I91646b35e697eafebc5c89d54c09cf4adcf70342 Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1153254
…n tests (llvm#114904) This improves/fixes this pr llvm#114718. In this PR we removed the _Exit proxy func because it was not needed. Instead we used `LIBC_NAMESPACE::_Exit`
No description provided.