aboutsummaryrefslogtreecommitdiff
path: root/libcpp/ChangeLog
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2008-04-01 12:58:02 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2008-04-01 12:58:02 +0200
commitd4c32e1d76fcbda6dc861b1867d55d5ca0acce8e (patch)
tree8a8f5b38d60fa065b109dbce3b10bb03f01befe1 /libcpp/ChangeLog
parent764a79eda2a2e64329eea92b11a73bdfcdd18276 (diff)
downloadgcc-d4c32e1d76fcbda6dc861b1867d55d5ca0acce8e.tar.gz
gcc-d4c32e1d76fcbda6dc861b1867d55d5ca0acce8e.tar.bz2
gcc-d4c32e1d76fcbda6dc861b1867d55d5ca0acce8e.zip
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
Diffstat (limited to 'libcpp/ChangeLog')
-rw-r--r--libcpp/ChangeLog10
1 files changed, 10 insertions, 0 deletions
diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog
index 0b3ce8b3a0c..e8719d931e1 100644
--- a/libcpp/ChangeLog
+++ b/libcpp/ChangeLog
@@ -1,3 +1,13 @@
+2008-04-01 Jakub Jelinek <jakub@redhat.com>
+
+ 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.
+
2008-03-28 Tom Tromey <tromey@redhat.com>
* Makefile.in (POSTCOMPILE): New variable.