aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/module.c
diff options
context:
space:
mode:
authorSimon Baldwin <simonb@google.com>2011-09-20 13:19:23 +0000
committerDiego Novillo <dnovillo@gcc.gnu.org>2011-09-20 09:19:23 -0400
commit0274cf27fd787aa97935a1c0c15b369bd99390e3 (patch)
tree4a7b8f3dbe10a5d1ee64e1943eb5b71a9a6ad267 /gcc/fortran/module.c
parentf0f6b204a8d1d5030ca6461a378afdd6cb058b39 (diff)
downloadgcc-0274cf27fd787aa97935a1c0c15b369bd99390e3.zip
gcc-0274cf27fd787aa97935a1c0c15b369bd99390e3.tar.gz
gcc-0274cf27fd787aa97935a1c0c15b369bd99390e3.tar.bz2
module.c (gfc_dump_module): Omit timestamp from output.
2011-09-16 Simon Baldwin <simonb@google.com> * module.c (gfc_dump_module): Omit timestamp from output. From-SVN: r179007
Diffstat (limited to 'gcc/fortran/module.c')
-rw-r--r--gcc/fortran/module.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/gcc/fortran/module.c b/gcc/fortran/module.c
index 4250a17..b29ba4b 100644
--- a/gcc/fortran/module.c
+++ b/gcc/fortran/module.c
@@ -5178,8 +5178,7 @@ void
gfc_dump_module (const char *name, int dump_flag)
{
int n;
- char *filename, *filename_tmp, *p;
- time_t now;
+ char *filename, *filename_tmp;
fpos_t md5_pos;
unsigned char md5_new[16], md5_old[16];
@@ -5221,13 +5220,8 @@ gfc_dump_module (const char *name, int dump_flag)
filename_tmp, xstrerror (errno));
/* Write the header, including space reserved for the MD5 sum. */
- now = time (NULL);
- p = ctime (&now);
-
- *strchr (p, '\n') = '\0';
-
- fprintf (module_fp, "GFORTRAN module version '%s' created from %s on %s\n"
- "MD5:", MOD_VERSION, gfc_source_file, p);
+ fprintf (module_fp, "GFORTRAN module version '%s' created from %s\n"
+ "MD5:", MOD_VERSION, gfc_source_file);
fgetpos (module_fp, &md5_pos);
fputs ("00000000000000000000000000000000 -- "
"If you edit this, you'll get what you deserve.\n\n", module_fp);