[patch, testsuite, spu, fortran] Fix test case using command line arguments

Tobias Burnus burnus@net-b.de
Thu Apr 16 18:37:00 GMT 2009


Ulrich Weigand wrote:
> the gfortran.fortran-torture/execute/getarg_1.f90 test case attempts
> to access command line arguments.  By default this is not supported
> on the SPU; arguments are only passed when building with -mstdmain.
>
> The following patch adds a getarg_1.x file to provide this additional
> argument for SPU targets.
>
> Tested on spu-elf.
> OK for mainline?
>   
OK. Thanks for your SPU work.

Tobias

> ChangeLog:
>
> 	* gfortran.fortran-torture/execute/getarg_1.x: New file.
>
>
> Index: gcc/testsuite/gfortran.fortran-torture/execute/getarg_1.x
> ===================================================================
> *** gcc/testsuite/gfortran.fortran-torture/execute/getarg_1.x	(revision 0)
> --- gcc/testsuite/gfortran.fortran-torture/execute/getarg_1.x	(revision 0)
> ***************
> *** 0 ****
> --- 1,5 ----
> + if [istarget "spu-*-*"] {
> +     # We need -mstdmain to enable argument processing on SPU.
> +     lappend additional_flags "-mstdmain"
> + }
> + return 0
>   



More information about the Fortran mailing list