preprocessor/2706: #defines expanded when -fpreprocessed given
Nathan Sidwell
nathan@codesourcery.com
Wed May 2 09:06:00 GMT 2001
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
More information about the Gcc-prs
mailing list