RE: Writing a option pass

2007-03-31 Thread Dave Korn
On 31 March 2007 10:40, albino aiello wrote: > Thank you, > my problem is that the value of the variable that i have defined in > common.opt in the following manner is always at the default value: > > myvariable= > Common RejectNegative UInteger Var (my_variable) Init(-1) > Comments > > In passe

Re: Writing a option pass

2007-03-31 Thread Mike Stump
On Mar 31, 2007, at 2:39 AM, albino aiello wrote: my problem is that the value of the variable that i have defined in common.opt in the following manner is always at the default value Now, take something that works, print it's value. Pass the documented flag, see if you can notice it change

Re: Writing a option pass

2007-03-31 Thread albino aiello
Thank you, my problem is that the value of the variable that i have defined in common.opt in the following manner is always at the default value: myvariable= Common RejectNegative UInteger Var (my_variable) Init(-1) Comments In passes.c i have defined a new compilation pass that must use the

Re: Writing a option pass

2007-03-30 Thread Mike Stump
On Mar 30, 2007, at 11:24 AM, albino aiello wrote: 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_