This is the mail archive of the gcc@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: more pch questions



On Tuesday, March 11, 2003, at 11:01 AM, Benjamin Kosnik wrote:



Hmmm. You keep saying this, and I keep telling you that -Winvalid-pch doesn't hack it.

So. In this case, when I'm compiling with a found .gch file, and it's
found to be invalid, -Winvalid-pch says nothing.

You're saying that execution reaches the fail: label in cpp_valid_state. Execution can't fall through to there, there are only three places that have 'goto fail' in that routine, and each one has a call to cpp_error right before it, switched on by 'warn_invalid_pch'.


So, if -Winvalid-pch says nothing, then there's something very wrong, maybe a codegen problem in the stage1 compiler.

I don't have very much time to be debugging these problems; I have other, more serious problems that I must fix first (at the moment, I'm working on #import, which is a complete showstopper for Apple). It would help a lot if you could produce simple testcases that I don't need to apply compiler patches to run.

--
Geoff Keating <geoffk at apple dot com>


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