X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=gcc%2Fcpppch.c;h=8cb5bcff87a4855c8cb172aafe7e8ccb01d61be4;hb=826e19bc48cf9083a1dc4a34fec2eb60df3e2adf;hp=872908de0bd57c15886acb0596340bec4ee63351;hpb=d80d207431480614c84e6f4fde0a157c5dc590f9;p=pf3gnuchains%2Fgcc-fork.git diff --git a/gcc/cpppch.c b/gcc/cpppch.c index 872908de0bd..8cb5bcff87a 100644 --- a/gcc/cpppch.c +++ b/gcc/cpppch.c @@ -1,5 +1,5 @@ /* Part of CPP library. (Precompiled header reading/writing.) - Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc. + Copyright (C) 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the @@ -366,6 +366,12 @@ cpp_write_pch_state (cpp_reader *r, FILE *f) return -1; } + if (! _cpp_save_file_entries (r, f)) + { + cpp_errno (r, CPP_DL_ERROR, "while writing precompiled header"); + return -1; + } + return 0; } @@ -709,6 +715,9 @@ cpp_read_state (cpp_reader *r, const char *name, FILE *f, != 0) goto error; + if (! _cpp_read_file_entries (r, f)) + goto error; + return 0; error: