[Bug pch/13675] #including a precompiled header more than once in the same unit fails
jakub at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Apr 1 10:59:00 GMT 2008
------- Comment #17 from jakub at gcc dot gnu dot org 2008-04-01 10:58 -------
Subject: Bug 13675
Author: jakub
Date: Tue Apr 1 10:58:02 2008
New Revision: 133790
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=133790
Log:
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).
Modified:
trunk/gcc/ChangeLog
trunk/gcc/c-pch.c
trunk/libcpp/ChangeLog
trunk/libcpp/files.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13675
More information about the Gcc-bugs
mailing list