This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: Writing a option pass
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: "'albino aiello'" <ultimanota at libero dot it>, <gcc at gcc dot gnu dot org>
- Date: Sun, 1 Apr 2007 01:31:24 +0100
- Subject: RE: Writing a option pass
- References: <460D55CF.9040502@libero.it> <26BF48E7-3463-4401-B78A-8B6D6D017668@apple.com> <460E2C6A.6000401@libero.it>
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....