Unverified Commit 89361007 authored by Nikita Popov's avatar Nikita Popov Committed by GitHub
Browse files

[hwasan] Move __hwasan_thread_enter/__hwasan_thread_exit out of namespace (#72123)

Due to a GCC bug (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25940),
GCC doesn't consider extern "C" functions with the same name but
different namespace to be the same. As such, the default visibility
attribute (on a declaration outside the namespace) doesn't get applied
to the definition in the namespace and the symbol is not exported.

This came up as an ABI diff when switching between gcc and clang for
compiling compiler-rt.
parent 261b4710
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment