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]

RE: Writing a option pass


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 passes.c i have defined a new compilation pass that must use the
> value stored in myvariable that is always -1.
> I think that maybe i wrong when write the compilation command. I have
> try in different ways like:
> 
> gcc -my-passes -myvariable=number
> gcc -my-passes -myvariable='number'
> gcc -my-passes -myvariable=[number]
> gcc -my-passes -myvariable="number"
> 
> I don't know the just way.


  Does 'gcc -my-passes -myvariable= number' work?  Are you missing 'Joined'?


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


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