OSDN Git Service

PR pch/13675
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 1 Apr 2008 10:58:02 +0000 (10:58 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 1 Apr 2008 10:58:02 +0000 (10:58 +0000)
commitf2225b1adbc6f778afbd40722f0d40f7614fdb47
tree8a8f5b38d60fa065b109dbce3b10bb03f01befe1
parent7433d1d602d195414fa7c4766b953d05ac8cf371
PR pch/13675
* files.c (struct _cpp_file): Remove pch field.
(pch_open_file): Don't set file->pch, just file->pchname.
(should_stack_file): After pfile->cb.read_pch call
free pchname and clear pchname, don't close file->fd.
Test file->pchname instead of file->pch.  Don't close fd after cb.
(_cpp_stack_include): Test file->pchname instead of file->pch.

* c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@133790 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-pch.c
libcpp/ChangeLog
libcpp/files.c