diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2017-08-09 18:52:10 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2017-08-09 18:52:10 +0100 |
commit | 04d07b61cb80fd97e98eb39451ff6a8675a63d90 (patch) | |
tree | 2f1a5e8476f916373aca9ab3ebd0606ceaf5f9c5 /gcc | |
parent | a171ac0380a22f992d9c57a4189ddfc834d0e022 (diff) | |
download | gcc-04d07b61cb80fd97e98eb39451ff6a8675a63d90.zip gcc-04d07b61cb80fd97e98eb39451ff6a8675a63d90.tar.gz gcc-04d07b61cb80fd97e98eb39451ff6a8675a63d90.tar.bz2 |
PR libstdc++/81751 don't call fflush(NULL)
PR libstdc++/79820
PR libstdc++/81751
* config/io/basic_file_stdio.cc (sys_open(FILE*, ios_base::openmode)):
Call fflush on the stream instead of calling sync() while _M_cfile is
null. Restore original value of errno.
* testsuite/ext/stdio_filebuf/char/79820.cc: New.
* testsuite/ext/stdio_filebuf/char/81751.cc: New.
From-SVN: r250993
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions