From patchwork Thu Jan 24 21:46:07 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [committed] Add MIPS option to bind_c_array_params_2.f90 From: Richard Sandiford X-Patchwork-Id: 215498 Message-Id: <87a9rytfts.fsf@talisman.default> To: gcc-patches@gcc.gnu.org, fortran@gcc.gnu.org Date: Thu, 24 Jan 2013 21:46:07 +0000 gfortran.dg/bind_c_array_params_2.f90 fails for some mips*-linux-gnu combinations because we output the linker hint: .reloc 1f,R_MIPS_JALR,myBindC as well as the call itself. Fixed by passing the option that disables this feature. Tested on mips64el-linux-gnu and applied. Richard gcc/testsuite/ * gfortran.dg/bind_c_array_params_2.f90: Require -mno-relax-pic-calls for MIPS. Index: gcc/testsuite/gfortran.dg/bind_c_array_params_2.f90 =================================================================== --- gcc/testsuite/gfortran.dg/bind_c_array_params_2.f90 2013-01-24 21:37:41.719012829 +0000 +++ gcc/testsuite/gfortran.dg/bind_c_array_params_2.f90 2013-01-24 21:41:42.219599949 +0000 @@ -1,6 +1,7 @@ ! { dg-do compile } ! { dg-options "-std=f2008ts -fdump-tree-original" } ! { dg-additional-options "-mno-explicit-relocs" { target alpha*-*-* } } +! { dg-additional-options "-mno-relax-pic-calls" { target mips*-*-* } } ! ! Check that assumed-shape variables are correctly passed to BIND(C) ! as defined in TS 29913