From 7c1d91c435a34ece250d47feadf4cef17fb97ad9 Mon Sep 17 00:00:00 2001 From: Harald van Dijk Date: Fri, 3 Apr 2026 09:51:55 +0100 Subject: [PATCH] [BOLT] Move extern "C" out of unnamed namespace (#190282) GCC 15 changes how it interprets extern "C" in unnamed namespaces and gives the variable internal linkage. --- bolt/runtime/instr.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bolt/runtime/instr.cpp b/bolt/runtime/instr.cpp index c49567d4f6ac..a44f1266ea65 100644 --- a/bolt/runtime/instr.cpp +++ b/bolt/runtime/instr.cpp @@ -255,11 +255,11 @@ void *operator new[](size_t Sz, BumpPtrAllocator &A, char C) { // C++ language weirdness void operator delete(void *Ptr, BumpPtrAllocator &A) { A.deallocate(Ptr); } -namespace { - // Disable instrumentation optimizations that sacrifice profile accuracy extern "C" bool __bolt_instr_conservative; +namespace { + /// Basic key-val atom stored in our hash struct SimpleHashTableEntryBase { uint64_t Key;