gcc/libgfortran/intrinsics
Francois-Xavier Coudert a119fc1ca8 intrinsic.c (add_functions): Add ACCESS, CHMOD, RSHIFT, LSHIFT.
* intrinsic.c (add_functions): Add ACCESS, CHMOD, RSHIFT, LSHIFT.
	(add_subroutines): Add LTIME, GMTIME and CHMOD.
	* intrinsic.h (gfc_check_access_func, gfc_check_chmod,
	gfc_check_chmod_sub, gfc_check_ltime_gmtime, gfc_simplify_rshift,
	gfc_simplify_lshift, gfc_resolve_access, gfc_resolve_chmod,
	gfc_resolve_rshift, gfc_resolve_lshift, gfc_resolve_chmod_sub,
	gfc_resolve_gmtime, gfc_resolve_ltime): Add prototypes.
	* gfortran.h (gfc_generic_isym_id): Add GFC_ISYM_ACCESS,
	GFC_ISYM_CHMOD, GFC_ISYM_LSHIFT, GFC_ISYM_RSHIFT.
	* iresolve.c (gfc_resolve_access, gfc_resolve_chmod,
	gfc_resolve_rshift, gfc_resolve_lshift, gfc_resolve_chmod_sub,
	gfc_resolve_gmtime, gfc_resolve_ltime): New functions.
	* check.c (gfc_check_access_func, gfc_check_chmod,
	gfc_check_chmod_sub, gfc_check_ltime_gmtime): New functions.
	* trans-intrinsic.c (gfc_conv_intrinsic_rlshift): New function.
	(gfc_conv_intrinsic_function): Add cases for the new GFC_ISYM_*.

	* intrinsics/date_and_time.c: Add functions for GMTIME and LTIME.
	* intrinsics/access.c: New file.
	* intrinsics/chmod.c: New file.
	* configure.ac: Add checks for <sys/wait.h>, access, fork,execl
	and wait.
	* Makefile.am: Add new files intrinsics/access.c and
	intrinsics/chmod.c.
	* configure: Regenerate.
	* config.h.in: Regenerate.
	* Makefile.in: Regenerate.

	* gcc/testsuite/gfortran.dg/chmod_3.f90: New test.
	* gcc/testsuite/gfortran.dg/ltime_gmtime_1.f90: New test.
	* gcc/testsuite/gfortran.dg/ltime_gmtime_2.f90: New test.
	* gcc/testsuite/gfortran.dg/lrshift_1.f90: New test.
	* gcc/testsuite/gfortran.dg/chmod_1.f90: New test.
	* gcc/testsuite/gfortran.dg/chmod_2.f90: New test.

From-SVN: r115825
2006-07-30 20:48:00 +00:00
..
abort.c libgfortran ChangeLog: 2006-05-27 10:11:29 +03:00
access.c intrinsic.c (add_functions): Add ACCESS, CHMOD, RSHIFT, LSHIFT. 2006-07-30 20:48:00 +00:00
args.c All files: Update FSF address. 2005-08-17 02:49:08 +00:00
associated.c associated (associated): Zero-sized arrays should not be reported as ASSOCIATED. 2006-05-25 12:47:08 +00:00
bessel.c All files: Update FSF address. 2005-08-17 02:49:08 +00:00
c99_functions.c c99_functions.c: Work around incompatible declarations of cabs{,f,l} on pre-C99 IRIX systems. 2006-02-07 18:26:54 +01:00
chdir.c ierrno.c: Don't include "io/io.h". 2006-06-24 12:34:51 +00:00
chmod.c intrinsic.c (add_functions): Add ACCESS, CHMOD, RSHIFT, LSHIFT. 2006-07-30 20:48:00 +00:00
clock.c intrinsic.c (add_functions): Add INT2, SHORT, INT8, LONG, LSTAT, MCLOCK and MCLOCK8 intrinsic functions. 2006-07-26 11:58:48 +00:00
cpu_time.c re PR libfortran/23380 ([mingw32] cpu_time intrinsic malfunction) 2005-09-24 08:39:35 +00:00
cshift0.c re PR fortran/19269 (transpose(reshape(...)) of character array segfaults.) 2005-09-13 07:15:01 +00:00
ctime.c intrinsic.c (add_functions): Add ctime and fdate intrinsics. 2005-11-06 10:17:04 +00:00
date_and_time.c intrinsic.c (add_functions): Add ACCESS, CHMOD, RSHIFT, LSHIFT. 2006-07-30 20:48:00 +00:00
dprod_r8.f90 All files: Update FSF address. 2005-08-17 02:49:08 +00:00
env.c All files: Update FSF address. 2005-08-17 02:49:08 +00:00
eoshift0.c re PR fortran/19269 (transpose(reshape(...)) of character array segfaults.) 2005-09-13 07:15:01 +00:00
eoshift2.c re PR fortran/19269 (transpose(reshape(...)) of character array segfaults.) 2005-09-13 07:15:01 +00:00
erf.c All files: Update FSF address. 2005-08-17 02:49:08 +00:00
etime.c etime.c: Remove etime_ 2006-07-15 16:12:15 +00:00
exit.c All files: Update FSF address. 2005-08-17 02:49:08 +00:00
f2c_specifics.F90 All files: Update FSF address. 2005-08-17 02:49:08 +00:00
fget.c ftell.c (ftell, FTELL_SUB): Add unlock_unit call. 2005-11-28 08:16:33 +01:00
flush.c re PR fortran/14943 (read/write code generation is not thread safe) 2005-11-21 23:03:56 +01:00
fnum.c ierrno.c: Don't include "io/io.h". 2006-06-24 12:34:51 +00:00
ftell.c ftell.c (ftell, FTELL_SUB): Add unlock_unit call. 2005-11-28 08:16:33 +01:00
gerror.c All files: Update FSF address. 2005-08-17 02:49:08 +00:00
getXid.c re PR libfortran/24432 (Missing symbols) 2005-10-19 09:45:27 +00:00
getcwd.c All files: Update FSF address. 2005-08-17 02:49:08 +00:00
getlog.c re PR libfortran/23803 ([mingw32] getlog malfunction) 2005-09-25 21:02:17 +00:00
hostnm.c re PR libfortran/23803 ([mingw32] getlog malfunction) 2005-09-25 21:02:17 +00:00
hyper.c All files: Update FSF address. 2005-08-17 02:49:08 +00:00
ierrno.c ierrno.c: Don't include "io/io.h". 2006-06-24 12:34:51 +00:00
ishftc.c re PR libfortran/19308 (I/O library should support more real and integer kinds) 2005-10-03 07:22:20 +00:00
kill.c ierrno.c: Don't include "io/io.h". 2006-06-24 12:34:51 +00:00
link.c ierrno.c: Don't include "io/io.h". 2006-06-24 12:34:51 +00:00
malloc.c check.c (gfc_check_malloc, [...]): New functions. 2005-10-30 12:17:48 +00:00
mvbits.c re PR libfortran/25577 (gfortran routine mvbits returns wrong answer.) 2006-02-08 00:52:37 +01:00
pack_generic.c re PR fortran/19269 (transpose(reshape(...)) of character array segfaults.) 2005-09-13 07:15:01 +00:00
perror.c ierrno.c: Don't include "io/io.h". 2006-06-24 12:34:51 +00:00
rand.c ierrno.c: Don't include "io/io.h". 2006-06-24 12:34:51 +00:00
random.c ierrno.c: Don't include "io/io.h". 2006-06-24 12:34:51 +00:00
rename.c ierrno.c: Don't include "io/io.h". 2006-06-24 12:34:51 +00:00
reshape_generic.c in_pack.m4: Add TODO comment about detecting temporaries... 2006-06-06 11:10:09 +03:00
reshape_packed.c All files: Update FSF address. 2005-08-17 02:49:08 +00:00
selected_int_kind.f90 All files: Update FSF address. 2005-08-17 02:49:08 +00:00
selected_real_kind.f90 All files: Update FSF address. 2005-08-17 02:49:08 +00:00
signal.c check.c (gfc_check_alarm_sub, [...]): New functions. 2005-10-28 21:16:17 +00:00
size.c All files: Update FSF address. 2005-08-17 02:49:08 +00:00
sleep.c ierrno.c: Don't include "io/io.h". 2006-06-24 12:34:51 +00:00
spread_generic.c in_pack.m4: Add TODO comment about detecting temporaries... 2006-06-06 11:10:09 +03:00
stat.c intrinsic.c (add_functions): Add INT2, SHORT, INT8, LONG, LSTAT, MCLOCK and MCLOCK8 intrinsic functions. 2006-07-26 11:58:48 +00:00
string_intrinsics.c re PR fortran/28163 (Calling libgfortran's copy_string is inefficient) 2006-07-12 15:11:11 +00:00
symlnk.c ierrno.c: Don't include "io/io.h". 2006-06-24 12:34:51 +00:00
system.c All files: Update FSF address. 2005-08-17 02:49:08 +00:00
system_clock.c re PR fortran/14943 (read/write code generation is not thread safe) 2005-11-21 23:03:56 +01:00
time.c ierrno.c: Don't include "io/io.h". 2006-06-24 12:34:51 +00:00
transpose_generic.c in_pack.m4: Add TODO comment about detecting temporaries... 2006-06-06 11:10:09 +03:00
tty.c ftell.c (ftell, FTELL_SUB): Add unlock_unit call. 2005-11-28 08:16:33 +01:00
umask.c All files: Update FSF address. 2005-08-17 02:49:08 +00:00
unlink.c All files: Update FSF address. 2005-08-17 02:49:08 +00:00
unpack_generic.c re PR fortran/19269 (transpose(reshape(...)) of character array segfaults.) 2005-09-13 07:15:01 +00:00