mirror of git://gcc.gnu.org/git/gcc.git
PR libfortran/62768 Use gfc_unit.filename also when HAVE_TTYNAME{_R} is not defined.
2014-09-18 Janne Blomqvist <jb@gcc.gnu.org>
PR libfortran/62768
* io/inquire.c (inquire_via_unit): Use gfc_unit.filename also when
HAVE_TTYNAME{_R} is not defined.
From-SVN: r215338
This commit is contained in:
parent
cadb2b9689
commit
010718fc37
|
|
@ -1,3 +1,9 @@
|
||||||
|
2014-09-18 Janne Blomqvist <jb@gcc.gnu.org>
|
||||||
|
|
||||||
|
PR libfortran/62768
|
||||||
|
* io/inquire.c (inquire_via_unit): Use gfc_unit.filename also when
|
||||||
|
HAVE_TTYNAME{_R} is not defined.
|
||||||
|
|
||||||
2014-09-17 Janne Blomqvist <jb@gcc.gnu.org>
|
2014-09-17 Janne Blomqvist <jb@gcc.gnu.org>
|
||||||
|
|
||||||
PR libfortran/62768
|
PR libfortran/62768
|
||||||
|
|
|
||||||
|
|
@ -92,9 +92,9 @@ inquire_via_unit (st_parameter_inquire *iqp, gfc_unit * u)
|
||||||
else if (u->unit_number == options.stderr_unit)
|
else if (u->unit_number == options.stderr_unit)
|
||||||
fstrcpy (iqp->name, iqp->name_len, "CONERR$", sizeof("CONERR$"));
|
fstrcpy (iqp->name, iqp->name_len, "CONERR$", sizeof("CONERR$"));
|
||||||
else
|
else
|
||||||
fstrcpy (iqp->name, iqp->name_len, u->file, u->file_len);
|
cf_strcpy (iqp->name, iqp->name_len, u->filename);
|
||||||
#else
|
#else
|
||||||
fstrcpy (iqp->name, iqp->name_len, u->file, u->file_len);
|
cf_strcpy (iqp->name, iqp->name_len, u->filename);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue