https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117133
--- Comment #4 from Nathaniel Shead <nshead at gcc dot gnu.org> --- This is a bit of a strange case... strictly this (new) behaviour is correct, I think, since gEmbeddedNNUEBigData has internal linkage (see https://eel.is/c++draft/basic.link#4.9) and as such is not actually 'extern "C"', by https://eel.is/c++draft/dcl.link#5: > the specified language linkage applies to the function types of all > function declarators and to all functions and variables whose names > have external linkage. I don't know how this should interact with the asm overriding though, but I personally feel like this is just an issue in stockfish that should be resolved by moving the declaration out of the anonymous namespace. Thoughts? Otherwise I'm not sure what the best way to approach fixing this would be.