This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/30964] optional arguments to random_seed



------- Comment #11 from fxcoudert at gcc dot gnu dot org  2007-08-12 20:45 -------
Subject: Bug 30964

Author: fxcoudert
Date: Sun Aug 12 20:45:29 2007
New Revision: 127383

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=127383
Log:
        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.

Added:
    trunk/gcc/testsuite/gfortran.dg/random_4.f90
    trunk/gcc/testsuite/gfortran.dg/random_5.f90
    trunk/gcc/testsuite/gfortran.dg/random_6.f90
    trunk/gcc/testsuite/gfortran.dg/random_7.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/check.c
    trunk/gcc/fortran/intrinsic.c
    trunk/gcc/fortran/intrinsic.h
    trunk/gcc/fortran/iresolve.c
    trunk/gcc/fortran/trans-expr.c
    trunk/gcc/testsuite/ChangeLog
    trunk/libgfortran/ChangeLog
    trunk/libgfortran/gfortran.map
    trunk/libgfortran/intrinsics/random.c
    trunk/libgfortran/libgfortran.h
    trunk/libgfortran/runtime/main.c


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30964


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]