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]

merging C and C++ options


Howdy,

I'm trying to merge the -Wreturn-type flag, which is used in both
C and C++, into c-common.[ch] as suggested on the Simple GCC
projects page.  In order to do so, it appears that one must do the
following:

 * 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)

Matt

PGP signature


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