This is the mail archive of the gcc-patches@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]

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


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
>   


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