+2014-08-30 Janne Blomqvist <jb@gcc.gnu.org>
+
+ * module.c (gfc_dump_module): Use ISO C remove() instead of POSIX
+ unlink().
+
2014-08-29 Jeffrey Armstrong <jeffrey.armstrong@approximatrix.com>
PR fortran/62215
module file, even if it was already there. */
if (!dump_flag)
{
- unlink (filename);
+ remove (filename);
return;
}
|| crc_old != crc)
{
/* Module file have changed, replace the old one. */
- if (unlink (filename) && errno != ENOENT)
+ if (remove (filename) && errno != ENOENT)
gfc_fatal_error ("Can't delete module file '%s': %s", filename,
xstrerror (errno));
if (rename (filename_tmp, filename))
}
else
{
- if (unlink (filename_tmp))
+ if (remove (filename_tmp))
gfc_fatal_error ("Can't delete temporary module file '%s': %s",
filename_tmp, xstrerror (errno));
}