Writing a option pass

albino aiello ultimanota@libero.it
Fri Mar 30 19:14:00 GMT 2007


Hi all,
i must add a new pass to gcc.  I want  to receive from command line an 
integer value at compilation time. I have modify the file common.opt but 
tha value of the variable is alwais 0.
I have add the following row:

my-variable=
Common Var (my_variable)init(-1).
Comments

I want to obtain some like this: gcc -my-variable=5
Init(-1) is for the default value. When i go to see the value of 
my_variable from the file passes.c he is alwais 0.
Can anyone help me??

Thanks to all,
Antony



More information about the Gcc mailing list