Emit a variable defined in gcc

2020-06-29 Thread Harshit Sharma via Gcc
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 reference by our source code so that if this patch is missing, the user gets

Re: Emit a variable defined in gcc

2020-06-30 Thread Harshit Sharma via Gcc
nks, Harshit On Tue, Jun 30, 2020 at 12:34 AM Martin Liška wrote: > On 6/30/20 7:55 AM, Harshit Sharma via Gcc wrote: > > Hello, > > I am working on a gcc patch for asan. > > Hey. > > Good to hear, what kind of feature is that? > > > The patch is almost ready exce

Re: Emit a variable defined in gcc

2020-07-01 Thread Harshit Sharma via Gcc
in > > > > > > > Thanks, > > Harshit > > > > On Tue, Jun 30, 2020 at 12:34 AM Martin Liška mli...@suse.cz>> wrote: > > > > On 6/30/20 7:55 AM, Harshit Sharma via Gcc wrote: > > > Hello, > > > I am working on a

Re: Emit a variable defined in gcc

2020-07-01 Thread Harshit Sharma via Gcc
y > our code (just like we do with functions such as __builtin_expect). > > > > Then what about adding a new ASAN variable that you will directly > access from your source code? > > What kind of interaction do you need? Or you can add a new ASAN > builtin (gcc/sanit