OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Revert previous fix for PR 45723.
[pf3gnuchains/gcc-fork.git]
/
libgfortran
/
io
/
open.c
diff --git
a/libgfortran/io/open.c
b/libgfortran/io/open.c
index
0102b9c
..
8f969ed
100644
(file)
--- a/
libgfortran/io/open.c
+++ b/
libgfortran/io/open.c
@@
-554,7
+554,7
@@
new_unit (st_parameter_open *opp, gfc_unit *u, unit_flags * flags)
if (flags->position == POSITION_APPEND)
{
- if (
file_size (opp->file, opp->file_len) > 0 &&
sseek (u->s, 0, SEEK_END) < 0)
+ if (sseek (u->s, 0, SEEK_END) < 0)
generate_error (&opp->common, LIBERROR_OS, NULL);
u->endfile = AT_ENDFILE;
}