This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: cpp macro expansion for #pragmas
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: Paul Rubin <phr-2006 at nightsong dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 29 Sep 2006 09:14:03 -0700
- Subject: Re: cpp macro expansion for #pragmas
- References: <20060929140951.16220.qmail@brouhaha.com>
On Fri, 2006-09-29 at 14:09 +0000, Paul Rubin wrote:
> This is revived from several months back. It adds cpp macro expansion
> capability for #pragma directives, under control of a gcc command line
> option (-expand-pragmas). It's against version 117267 of the svn
> tree, which is now a day or so old, except the testsuite/ChangeLog
> diff is against a newer revision (but changelogs always get patch
> conflicts anyway). I'd like to submit it for GCC 4.3. I've run the
> full gcc test suite and while there are a number of unexpected
> failures and successes, they're in non-cpp-related areas and I get the
> same failures when running the tests using the unpatched cpp (2
> unexpected failures in C, one unexpected success in C++, and 16
> unexpected failures in Fortran, IIRC. I think Fortran does not use
> the cpp at all). Please let me know of any probs.
Can I suggest the option be changed to -fexpand-pragmas so you don't
have to edit the driver code (gcc.c) and it is closer to the rest of the
options in GCC?
Also changelogs should be in plain text and not part of the patch.
Thanks,
Andrew Pinski