Hello, I am working on a gcc patch for asan. The patch is almost ready except one thing. To make sure that the user has applied this patch before using asan feature, I want to declare an additional variable in gcc which is referenced by our source code so that if this patch is missing, the user gets an error compiling the code because the reference to this variable will not be resolved.
I am still new to gcc development. So, can anyone tell me how can I make gcc emit this variable? Thanks, Harshit