PCH not being used, but I can't tell why

Geoff Keating geoffk@geoffk.org
Wed Aug 20 18:27:00 GMT 2003


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>



More information about the Gcc mailing list