mirror of git://gcc.gnu.org/git/gcc.git
libgfortran: Emit a space at beginning of internal unit NML.
PR libgfortran/113223 libgfortran/ChangeLog: * io/write.c (namelist_write): If internal_unit precede with space. gcc/testsuite/ChangeLog: * gfortran.dg/dtio_25.f90: Update. * gfortran.dg/namelist_57.f90: Update. * gfortran.dg/namelist_65.f90: Update.
This commit is contained in:
parent
0a8aba760f
commit
add995ec11
|
@ -2466,6 +2466,8 @@ namelist_write (st_parameter_dt *dtp)
|
|||
dtp->u.p.nml_delim = '\0';
|
||||
}
|
||||
|
||||
if (is_internal_unit (dtp))
|
||||
write_character (dtp, " ", 1, 1, NODELIM);
|
||||
write_character (dtp, "&", 1, 1, NODELIM);
|
||||
|
||||
/* Write namelist name in upper case - f95 std. */
|
||||
|
|
Loading…
Reference in New Issue