This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug pch/13675] #including a precompiled header more than once in the same unit fails
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Apr 2008 10:58:49 -0000
- Subject: [Bug pch/13675] #including a precompiled header more than once in the same unit fails
- References: <bug-13675-6060@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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