This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [gfortran,patch] Add ACCESS, CHMOD, GMTIME, LTIME, RSHIFT and LSHIFT g77 intrinsics
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: Fran?ois-Xavier Coudert <fxcoudert at gmail dot com>
- Cc: gfortran <fortran at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 30 Jul 2006 13:03:41 -0700
- Subject: Re: [gfortran,patch] Add ACCESS, CHMOD, GMTIME, LTIME, RSHIFT and LSHIFT g77 intrinsics
- References: <19c433eb0607270244q2eceb303h3f5a5dd30ce94d5c@mail.gmail.com>
On Thu, Jul 27, 2006 at 11:44:27AM +0200, Fran?ois-Xavier Coudert wrote:
>
> I believe the patch is otherwise simple and clean, except for the
> dirty library implementation on CHMOD, which currently forks, execs
> /bin/chmod and waits. It's not very clean, but it's protected by
> configure magic and writing (or importing) a parser of symbolic modes
> is just too much pain for me.
>
Two comments.
1) I think you can remove the simplification function prototypes
for lshift and rshift and update intrinsics.c to remove the
comments. I haven't looked, but I would be surprised if the
middle-end didn't fold LSHIFT_EXPR and RSHIFT_EXPR.
2) In your comments for gmtime and lttime, I see non-printable
control characters in the comments. For example,
+/* GMTIME(STIME, TARRAY) - Non-standard
+
+ Description: Given a system time value STime, fills TArray with values
+ extracted from it appropriate to the GMT time zone using gmtime(3).
+
+ The array elements are as follows:
+
+ 1. Seconds after the minute, range 0\xe2\x80\x9359 or 0\xe2\x80\x9361
to allow for leap seconds
Can you change these to something that a dumb terminal can render?
Otherwise, OK to commit.
--
Steve