This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: preprocessor/2706: #defines expanded when -fpreprocessed given


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]