This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Inserting new parameter in gcc
- From: Juan Luis Liarte <juanluis dot liarte at aquiline dot es>
- To: gcc at gcc dot gnu dot org
- Date: Fri, 09 Nov 2007 10:08:23 +0100
- Subject: Inserting new parameter in gcc
Hello to all,
I have been working on inserting a new string argument in gcc, which
accepts a string from command line.
It would be like gcc ... -fmyparameter=stringtoread ...
In common.opt, I have had to insert a new parameter, and it has been
something like
myparameter=
Common RejectNegative Joined
It works, but I have been thinking on it, and maybe this way to insert
arguments is a little bit messy. For example, the keyword RejectNegative
is not very intuitive, and the documentation about the options is a
little bit confusing.
Maybe this syntax should be improved, at least with better
documentation, or maybe changing the syntax of common.opt (adding the
same options with an intuitive form). I think it could be interesting
to make a little patch about it. Opinions?
Thanks
Juan Luis