This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Writing a option pass


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]