merging C and C++ options

Matt Kraai kraai@alumni.carnegiemellon.edu
Wed Feb 14 23:23:00 GMT 2001


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
-- 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE6i4NJfNdgYxVXvBARAujEAJ4rQOituhgvygsf7Bv8TAgtfQzc0ACfSvk5
2BwajSewH1W1tus9Rzs+rU8=
=RjkE
-----END PGP SIGNATURE-----


More information about the Gcc mailing list