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]

Re: merging C and C++ options


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.


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