This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Plugify Objective-C++ parser bits
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Mike Stump <mikestump at comcast dot net>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 13 Feb 2011 15:57:59 +0000 (UTC)
- Subject: Re: Plugify Objective-C++ parser bits
- References: <DC7DE569-7E10-4FD7-B12A-89C120197FB9@comcast.net>
This patch series (as regards the risk to normal builds with C++ but not
Obj-C++, in particular) is manifestly inappropriate for Stage 4. Please
revert it now.
> * Make-lang.in (build/slashify): Plugify Objective-C++.
Using this sort of preprocessor is moving in the wrong direction. We
should aim to be using standard C - and in future C++ - features instead
of GCC-specific hacks; if generated C files can be avoided, it's desirable
to avoid them, and if you don't like long macros, use (inline if
necessary) functions. Editors and other tools understand and know how to
work with standard macros; they don't know how to work with this
special-case preprocessor. In any case config/ is clearly the wrong place
for any such tool. And such a coding style issue should be decided
globally, not by one maintainer randomly deciding to do things
differently.
--
Joseph S. Myers
joseph@codesourcery.com