This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
merging C and C++ options
- To: gcc at gcc dot gnu dot org
- Subject: merging C and C++ options
- From: Matt Kraai <kraai at alumni dot carnegiemellon dot edu>
- Date: Wed, 14 Feb 2001 23:20:41 -0800
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