gcc/libgfortran/intrinsics
Francois-Xavier Coudert 34b4bc5c61 re PR fortran/30964 (optional arguments to random_seed)
PR fortran/30964
	PR fortran/33054

	* trans-expr.c (gfc_conv_function_call): When no formal argument
	list is available, we still substitute missing optional arguments.
	* check.c (gfc_check_random_seed): Correct the check on the
	number of arguments to RANDOM_SEED.
	* intrinsic.c (add_subroutines): Add a resolution function to
	RANDOM_SEED.
	* iresolve.c (gfc_resolve_random_seed): New function.
	* intrinsic.h (gfc_resolve_random_seed): New prototype.

	* intrinsics/random.c (random_seed): Rename into random_seed_i4.
	(random_seed_i8): New function.
	* gfortran.map (GFORTRAN_1.0): Remove _gfortran_random_seed,
	add _gfortran_random_seed_i4 and _gfortran_random_seed_i8.
	* libgfortran.h (iexport_proto): Replace random_seed by
	random_seed_i4 and random_seed_i8.
	* runtime/main.c (init): Call the new random_seed_i4.

	* gfortran.dg/random_4.f90: New test.
	* gfortran.dg/random_5.f90: New test.
	* gfortran.dg/random_6.f90: New test.
	* gfortran.dg/random_7.f90: New test.

From-SVN: r127383
2007-08-12 20:45:29 +00:00
..
abort.c
access.c
args.c
associated.c re PR fortran/32933 (ICE in simplify_subreg with -fdefault-integer-8) 2007-08-10 13:20:46 +00:00
c99_functions.c re PR fortran/31202 (Incorrect rounding generated for NINT) 2007-08-05 22:14:34 +00:00
chdir.c
chmod.c
clock.c
cpu_time.c
cshift0.c
ctime.c
date_and_time.c
dprod_r8.f90
env.c
eoshift0.c
eoshift2.c
etime.c
exit.c
f2c_specifics.F90
fnum.c
gerror.c
getcwd.c
getlog.c
getXid.c
hostnm.c
ierrno.c
ishftc.c
iso_c_binding.c re PR fortran/32600 ([ISO Bind C] C_F_POINTER w/o SHAPE should not be a library function) 2007-07-23 08:03:33 +02:00
iso_c_binding.h re PR fortran/32600 ([ISO Bind C] C_F_POINTER w/o SHAPE should not be a library function) 2007-07-23 08:03:33 +02:00
iso_c_generated_procs.c re PR fortran/32627 ([ISO Bind C] Accept c_f_pointer for TYPE) 2007-07-21 23:45:44 +00:00
kill.c
link.c
malloc.c
move_alloc.c
mvbits.c re PR fortran/32357 (MVBITS gives wrong-code on big-endian with -fdefault-integer-8) 2007-07-14 23:11:04 +00:00
pack_generic.c re PR libfortran/32858 (printf-capabilities for runtime_error()) 2007-07-29 20:01:45 +00:00
perror.c
rand.c
random.c re PR fortran/30964 (optional arguments to random_seed) 2007-08-12 20:45:29 +00:00
rename.c
reshape_generic.c
reshape_packed.c
selected_int_kind.f90
selected_real_kind.f90
signal.c re PR fortran/30947 (intrinsic: ALARM) 2007-08-06 23:02:38 +00:00
size.c
sleep.c
spread_generic.c
stat.c
string_intrinsics.c re PR fortran/32937 (segfault with string and -fdefault-integer-8) 2007-08-11 21:31:35 +00:00
symlnk.c
system_clock.c
system.c
time.c
transpose_generic.c
umask.c
unlink.c
unpack_generic.c re PR fortran/32217 (segfaults (at runtime) on UNPACK with zero-sized arrays) 2007-07-08 22:20:04 +00:00