This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: [PATCH] Fix PR preprocessor/15167


> I think f->buffer_valid is supposed to be reset by _cpp_stack_file.
> How did it get this far with buffer_valid true?

I'm not sure I understand: this is a #pragma-onced header so it cannot be 
restacked.  Moreover, the problem is that it is included from two different 
directories, so two _cpp_file objects are allocated.

> You're allowed to create a test case made up of five files (and/or
> directories) if you need to.  Several tests in gcc.dg/cpp are already
> like that.  And it would help me review this if you showed an example,
> so that I could see how this was happening.

OK.  Attached.

-- 
Eric Botcazou

Attachment: pragma_once_ice.tar.bz2
Description: application/tbz


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