diff options
author | Elliott Hughes <enh@google.com> | 2021-06-07 11:20:28 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2021-06-07 11:20:28 -0700 |
commit | 504d0488ad1bd1531e9cff3de4186160f9f47f72 (patch) | |
tree | d3fae9f4e07febb6525edcccadf539f68ff61fc7 | |
parent | 9af7da4ff881fbbdb44915d4083f63fba88f9233 (diff) | |
download | bionic-504d0488ad1bd1531e9cff3de4186160f9f47f72.tar.gz |
Mark abort(3) as `nomerge`.
Otherwise, since it's `noreturn`, clang will merge multiple call sites
in the same function, destroying information that helps you debug
_which_ call fired from a tombstone.
Bug: https://github.com/android/ndk/issues/1514
Test: treehugger
Change-Id: I7930318a813f6a2220266794f16c0e5e72d32869
-rw-r--r-- | libc/include/stdlib.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/include/stdlib.h b/libc/include/stdlib.h index d7fdb4a52..583287f42 100644 --- a/libc/include/stdlib.h +++ b/libc/include/stdlib.h @@ -41,7 +41,7 @@ __BEGIN_DECLS #define EXIT_FAILURE 1 #define EXIT_SUCCESS 0 -__noreturn void abort(void); +__noreturn void abort(void) __attribute__((__nomerge__)); __noreturn void exit(int __status); #if __ANDROID_API__ >= 21 __noreturn void _Exit(int __status) __INTRODUCED_IN(21); |