On 6/30/20 7:55 AM, Harshit Sharma via Gcc wrote:
I am working on a gcc patch for asan.


Good to hear, what kind of feature is that?

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 reference
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

A nice example can be emission of global variables that are used for 
see gcc/tree-profile.c:194-202.

Let me know if it helps?

I am still new to gcc development. So, can anyone tell me how can I make
gcc emit this variable?


Reply via email to