diff --git a/hipamd/include/hip/hcc_detail/code_object_bundle.hpp b/hipamd/include/hip/hcc_detail/code_object_bundle.hpp index 8b1ae8aa49..32b0c0dbc8 100644 --- a/hipamd/include/hip/hcc_detail/code_object_bundle.hpp +++ b/hipamd/include/hip/hcc_detail/code_object_bundle.hpp @@ -91,6 +91,10 @@ struct Bundled_code { #define magic_string_ "__CLANG_OFFLOAD_BUNDLE__" +#ifdef __GNUC__ +#pragma GCC visibility push (default) +#endif + class Bundled_code_header { // DATA - STATICS static constexpr auto magic_string_sz_ = sizeof(magic_string_) - 1; @@ -172,6 +176,10 @@ class Bundled_code_header { size_t bundled_code_size = 0; }; +#ifdef __GNUC__ +#pragma GCC visibility pop +#endif + // CREATORS template Bundled_code_header::Bundled_code_header(RandomAccessIterator f, RandomAccessIterator l)