This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Writing a option pass
- From: Mike Stump <mrs at apple dot com>
- To: albino aiello <ultimanota at libero dot it>
- Cc: gcc at gcc dot gnu dot org
- Date: Fri, 30 Mar 2007 11:52:50 -0700
- Subject: Re: Writing a option pass
- References: <460D55CF.9040502@libero.it>
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.