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

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


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?



	* 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
  Dr. Ulrich Weigand
  GNU Toolchain for Linux on System z and Cell BE

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