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 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.



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