diff --git a/compiler-rt/lib/gwp_asan/crash_handler.cpp b/compiler-rt/lib/gwp_asan/crash_handler.cpp --- a/compiler-rt/lib/gwp_asan/crash_handler.cpp +++ b/compiler-rt/lib/gwp_asan/crash_handler.cpp @@ -10,6 +10,7 @@ #include "gwp_asan/stack_trace_compressor.h" #include +#include #include using AllocationMetadata = gwp_asan::AllocationMetadata; diff --git a/compiler-rt/lib/gwp_asan/guarded_pool_allocator.h b/compiler-rt/lib/gwp_asan/guarded_pool_allocator.h --- a/compiler-rt/lib/gwp_asan/guarded_pool_allocator.h +++ b/compiler-rt/lib/gwp_asan/guarded_pool_allocator.h @@ -13,10 +13,9 @@ #include "gwp_asan/definitions.h" #include "gwp_asan/mutex.h" #include "gwp_asan/options.h" -#include "gwp_asan/platform_specific/guarded_pool_allocator_fuchsia.h" -#include "gwp_asan/platform_specific/guarded_pool_allocator_posix.h" +#include "gwp_asan/platform_specific/guarded_pool_allocator_fuchsia.h" // IWYU pragma: keep +#include "gwp_asan/platform_specific/guarded_pool_allocator_posix.h" // IWYU pragma: keep #include "gwp_asan/platform_specific/guarded_pool_allocator_tls.h" -#include "gwp_asan/stack_trace_compressor.h" #include #include diff --git a/compiler-rt/lib/gwp_asan/guarded_pool_allocator.cpp b/compiler-rt/lib/gwp_asan/guarded_pool_allocator.cpp --- a/compiler-rt/lib/gwp_asan/guarded_pool_allocator.cpp +++ b/compiler-rt/lib/gwp_asan/guarded_pool_allocator.cpp @@ -8,23 +8,10 @@ #include "gwp_asan/guarded_pool_allocator.h" -#include "gwp_asan/optional/segv_handler.h" #include "gwp_asan/options.h" #include "gwp_asan/utilities.h" -// RHEL creates the PRIu64 format macro (for printing uint64_t's) only when this -// macro is defined before including . -#ifndef __STDC_FORMAT_MACROS -#define __STDC_FORMAT_MACROS 1 -#endif - #include -#include -#include -#include -#include -#include -#include using AllocationMetadata = gwp_asan::AllocationMetadata; using Error = gwp_asan::Error; diff --git a/compiler-rt/lib/gwp_asan/mutex.h b/compiler-rt/lib/gwp_asan/mutex.h --- a/compiler-rt/lib/gwp_asan/mutex.h +++ b/compiler-rt/lib/gwp_asan/mutex.h @@ -9,8 +9,8 @@ #ifndef GWP_ASAN_MUTEX_H_ #define GWP_ASAN_MUTEX_H_ -#include "gwp_asan/platform_specific/mutex_fuchsia.h" -#include "gwp_asan/platform_specific/mutex_posix.h" +#include "gwp_asan/platform_specific/mutex_fuchsia.h" // IWYU pragma: keep +#include "gwp_asan/platform_specific/mutex_posix.h" // IWYU pragma: keep namespace gwp_asan { class Mutex final : PlatformMutex { diff --git a/compiler-rt/lib/gwp_asan/platform_specific/common_posix.cpp b/compiler-rt/lib/gwp_asan/platform_specific/common_posix.cpp --- a/compiler-rt/lib/gwp_asan/platform_specific/common_posix.cpp +++ b/compiler-rt/lib/gwp_asan/platform_specific/common_posix.cpp @@ -8,7 +8,8 @@ #include "gwp_asan/common.h" -#include +#include +#include #include namespace gwp_asan { diff --git a/compiler-rt/lib/gwp_asan/platform_specific/guarded_pool_allocator_posix.cpp b/compiler-rt/lib/gwp_asan/platform_specific/guarded_pool_allocator_posix.cpp --- a/compiler-rt/lib/gwp_asan/platform_specific/guarded_pool_allocator_posix.cpp +++ b/compiler-rt/lib/gwp_asan/platform_specific/guarded_pool_allocator_posix.cpp @@ -6,16 +6,16 @@ // //===----------------------------------------------------------------------===// +#include "gwp_asan/common.h" #include "gwp_asan/guarded_pool_allocator.h" +#include "gwp_asan/platform_specific/guarded_pool_allocator_tls.h" #include "gwp_asan/utilities.h" #include -#include -#include +#include +#include #include -#include #include -#include #include #include diff --git a/compiler-rt/lib/gwp_asan/platform_specific/utilities_posix.cpp b/compiler-rt/lib/gwp_asan/platform_specific/utilities_posix.cpp --- a/compiler-rt/lib/gwp_asan/platform_specific/utilities_posix.cpp +++ b/compiler-rt/lib/gwp_asan/platform_specific/utilities_posix.cpp @@ -6,11 +6,6 @@ // //===----------------------------------------------------------------------===// -#include "gwp_asan/definitions.h" -#include "gwp_asan/utilities.h" - -#include - #ifdef __BIONIC__ #include extern "C" GWP_ASAN_WEAK void android_set_abort_message(const char *);