summaryrefslogtreecommitdiff
path: root/gcc/c-pch.c
diff options
context:
space:
mode:
authorro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>2003-06-30 11:57:35 +0000
committerro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>2003-06-30 11:57:35 +0000
commit6a2cd1915308842c33b72c4452e5572398e64181 (patch)
tree6bda6c7c918d47ff26c8b57b8c3147d8f0b17c92 /gcc/c-pch.c
parent212d21612a858409d6b1a0ae7214c25b7f433a2f (diff)
downloadgcc-6a2cd1915308842c33b72c4452e5572398e64181.tar.gz
* c-pch.c (c_common_write_pch): Flush asm_out_file to allow for
subsequent writes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68696 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-pch.c')
-rw-r--r--gcc/c-pch.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/c-pch.c b/gcc/c-pch.c
index 22b7ccc3a1a..2dccecd506f 100644
--- a/gcc/c-pch.c
+++ b/gcc/c-pch.c
@@ -146,6 +146,8 @@ c_common_write_pch (void)
written += size;
}
free (buf);
+ /* asm_out_file can be written afterwards, so must be flushed first. */
+ fflush (asm_out_file);
gt_pch_save (pch_outfile);
cpp_write_pch_state (parse_in, pch_outfile);