]> git.ipfire.org Git - thirdparty/gcc.git/commit - libcpp/ChangeLog
re PR pch/13675 (#including a precompiled header more than once in the same unit...
authorJakub Jelinek <jakub@redhat.com>
Tue, 1 Apr 2008 10:58:02 +0000 (12:58 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 1 Apr 2008 10:58:02 +0000 (12:58 +0200)
commitd4c32e1d76fcbda6dc861b1867d55d5ca0acce8e
tree8a8f5b38d60fa065b109dbce3b10bb03f01befe1
parent764a79eda2a2e64329eea92b11a73bdfcdd18276
re PR pch/13675 (#including a precompiled header more than once in the same unit fails)

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).

From-SVN: r133790
gcc/ChangeLog
gcc/c-pch.c
libcpp/ChangeLog
libcpp/files.c