This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch, testsuite, spu, fortran] Fix test case using command line arguments
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: gcc-patches at gcc dot gnu dot org, fortran at gcc dot gnu dot org
- Date: Thu, 16 Apr 2009 14:44:13 +0200 (CEST)
- Subject: [patch, testsuite, spu, fortran] Fix test case using command line arguments
Hello,
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?
Bye,
Ulrich
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
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com