This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: preprocessor/2706: #defines expanded when -fpreprocessed given
- To: nobody at gcc dot gnu dot org
- Subject: Re: preprocessor/2706: #defines expanded when -fpreprocessed given
- From: Nathan Sidwell <nathan at codesourcery dot com>
- Date: 2 May 2001 16:06:00 -0000
- Cc: gcc-prs at gcc dot gnu dot org,
- Reply-To: Nathan Sidwell <nathan at codesourcery dot com>
The following reply was made to PR preprocessor/2706; it has been noted by GNATS.
From: Nathan Sidwell <nathan@codesourcery.com>
To: Zack Weinberg <zackw@stanford.edu>
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: preprocessor/2706: #defines expanded when -fpreprocessed given
Date: Wed, 02 May 2001 17:00:15 +0100
Zack Weinberg wrote:
>
> If you could write up some comprehensive test cases for this that'd be
> greatly appreciated. I'm bootstrapping this in mainline and will
> apply it there; I'd like Neil Booth's reaction before it goes onto the
> branch.
thanks for looking at this, I'll make some tests
> It might be better to emit a diagnostic from cpplib, along the lines
> of "'#define' not honored in already-preprocessed source", and discard
> the pseudo-directive. The diagnostics we give right now are rather
> unhelpful. Thoughts?
That was the kind of error I expected. What triggered this was cc1plus
silently swallowing a #include.
nathan
--
Dr Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
'But that's a lie.' - 'Yes it is. What's your point?'
nathan@codesourcery.com : http://www.cs.bris.ac.uk/~nathan/ : nathan@acm.org