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]

[committed] Add MIPS option to bind_c_array_params_2.f90


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


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