This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: merging C and C++ options
- To: Matt Kraai <kraai at alumni dot carnegiemellon dot edu>
- Subject: Re: merging C and C++ options
- From: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- Date: Thu, 15 Feb 2001 07:36:53 +0000
- Cc: gcc at gcc dot gnu dot org
- References: <20010214232041.C235@verona>
Matt Kraai wrote:-
> * remove the description from the language specific section (in
> this case in cp/lang-options.h)
> * add the description to the common flags section in toplev.c
> * move the variable definition and declaration into c-common.[ch]
> respectively
> * remove the declaration from cp/cp-tree.h (since it includes
> c-common.h)
>
> It would be nice to be able to do the following:
>
> * remove the declaration from flags.h (which does not currently
> include c-common.h, causing the variable to be undeclared)
> * merge the parsing code in c-decl.c and cp/cp-decl2.c (though I
> have no idea how to go about this)
Hi Matt,
It sounds like you're close. Why not try to produce a patch? If it's
slightly wrong somehow someone will point it out. You should check
you can bootstrap and that the option works for both C and C++ as
expected.
If you're thinking of working on some of those projects, it would be
a good idea to get a copyright assignment on file - they often take
a good month to process.
Neil.