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.
Can you give some suggestion??

Thanks.


Mike Stump ha scritto:
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_variable)init(-1).
Comments

Your cut-n-paste foo isn't just up to speed, compare the below and try and figure out how what you want differs:

ftabstop=
C ObjC C++ ObjC++ Joined RejectNegative UInteger
-ftabstop=<number>      Distance between tab stops for column reporting

ftemplate-depth-
C++ ObjC++ Joined RejectNegative UInteger
-ftemplate-depth-<number> Specify maximum template instantiation depth

Wdeprecated
C++ ObjC++ Var(warn_deprecated) Init(1) Warning
Warn about deprecated compiler features

Can anyone help me?

In general, you have to be able to help yourself with the simple issues.


Reply via email to