aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran
diff options
context:
space:
mode:
authorJanne Blomqvist <jb@gcc.gnu.org>2014-05-26 21:17:13 +0300
committerJanne Blomqvist <jb@gcc.gnu.org>2014-05-26 21:17:13 +0300
commitab75303f7d67ec56b43c7a5d4220e0002665c310 (patch)
tree3a4c498e474644d1e8fa23190c3286a2df8bddb9 /gcc/fortran
parentb8140cd629d333788a47719d49d495e9657c219a (diff)
downloadgcc-ab75303f7d67ec56b43c7a5d4220e0002665c310.zip
gcc-ab75303f7d67ec56b43c7a5d4220e0002665c310.tar.gz
gcc-ab75303f7d67ec56b43c7a5d4220e0002665c310.tar.bz2
PR 61310 Rewrite implementation of CTIME and FDATE intrinsics.
2014-05-26 Janne Blomqvist <jb@gcc.gnu.org> PR libfortran/61310 * intrinsics.texi (CTIME): Remove mention of locale-dependent behavior. 2014-05-26 Janne Blomqvist <jb@gcc.gnu.org> PR libfortran/61310 * intrinsics/ctime.c (strctime): Rename to gf_ctime, use snprintf instead of strftime. (fdate): Use gf_ctime. (fdate_sub): Likewise. (ctime): Likewise. (ctime_sub): Likewise. From-SVN: r210938
Diffstat (limited to 'gcc/fortran')
-rw-r--r--gcc/fortran/ChangeLog6
-rw-r--r--gcc/fortran/intrinsic.texi6
2 files changed, 8 insertions, 4 deletions
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog
index 0a830a7..91cb167 100644
--- a/gcc/fortran/ChangeLog
+++ b/gcc/fortran/ChangeLog
@@ -1,3 +1,9 @@
+2014-05-26 Janne Blomqvist <jb@gcc.gnu.org>
+
+ PR libfortran/61310
+ * intrinsics.texi (CTIME): Remove mention of locale-dependent
+ behavior.
+
2014-05-26 Tobias Burnus <burnus@net-b.de>
PR fortran/55117
diff --git a/gcc/fortran/intrinsic.texi b/gcc/fortran/intrinsic.texi
index 776cb00..8402a1f 100644
--- a/gcc/fortran/intrinsic.texi
+++ b/gcc/fortran/intrinsic.texi
@@ -3508,10 +3508,8 @@ end program test_cshift
@table @asis
@item @emph{Description}:
@code{CTIME} converts a system time value, such as returned by
-@code{TIME8}, to a string. Unless the application has called
-@code{setlocale}, the output will be in the default locale, of length
-24 and of the form @samp{Sat Aug 19 18:13:14 1995}. In other locales,
-a longer string may result.
+@code{TIME8}, to a string. The output will be of the form @samp{Sat
+Aug 19 18:13:14 1995}.
This intrinsic is provided in both subroutine and function forms; however,
only one form can be used in any given program unit.