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: PCH not being used, but I can't tell why


Phil Edwards <phil@jaj.com> writes:

> @@ -1184,14 +1188,14 @@ static bool
>  validate_pch (cpp_reader *pfile, _cpp_file *file, const char *pchname)
>  {
>    const char *saved_path = file->path;
> +  bool valid = false;
>  
>    file->path = pchname;
>    if (open_file (file))
>      {
> -      if ((file->pch & 2) == 0)
> -	file->pch = pfile->cb.valid_pch (pfile, pchname, file->fd);
> +      valid = 1 & pfile->cb.valid_pch (pfile, pchname, file->fd);

This seems to lose information...

-- 
- Geoffrey Keating <geoffk@geoffk.org>


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