This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Ptach, fortran] PR25818 - Problem with handling optional and entry master arguments
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: Paul Thomas <paulthomas2 at wanadoo dot fr>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>, Fortran List <fortran at gcc dot gnu dot org>
- Date: Thu, 21 Dec 2006 18:20:40 -0800
- Subject: Re: [Ptach, fortran] PR25818 - Problem with handling optional and entry master arguments
- References: <458B0BE9.7060007@wanadoo.fr>
On Thu, Dec 21, 2006 at 11:34:17PM +0100, Paul Thomas wrote:
> 2006-12-21 Paul Thomas <pault@gcc.gnu.org>
>
> PR fortran/25818
> * trans-array.c (gfc_trans_g77_array): If the variable is
> optional or not always present, make the statement conditional
> on presence of the argument.
> * gfortran.h : Add symbol_attribute not_always_present.
> * resolve.c (check_argument_lists): New function to check if
> arguments are not present in all entries.
> (resolve_entries): Call check_argument_lists.
>
> 2006-12-21 Paul Thomas <pault@gcc.gnu.org>
>
> PR fortran/25818
> * gfortran.dg/entry_array_specs_2.f: New test.
>
Your patch on i386-*-freebsd gives
FAIL: gfortran.fortran-torture/execute/entry_3.f90, -O0 (internal compiler error)
FAIL: gfortran.fortran-torture/execute/entry_3.f90, -O1 (internal compiler error)
FAIL: gfortran.fortran-torture/execute/entry_3.f90, -O2 (internal compiler error)
FAIL: gfortran.fortran-torture/execute/entry_3.f90, -O3 -fomit-frame-pointer (internal compiler error)
FAIL: gfortran.fortran-torture/execute/entry_3.f90, -O3 -fomit-frame-pointer -funroll-loops (internal compiler error)
FAIL: gfortran.fortran-torture/execute/entry_3.f90, -O3 -fomit-frame-pointer -funroll-all-loops -finline-functions (internal compiler error)
FAIL: gfortran.fortran-torture/execute/entry_3.f90, -O3 -g (internal compiler error)
FAIL: gfortran.fortran-torture/execute/entry_3.f90, -Os (internal compiler err
I'm looking into the problem.
--
Steve