This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils 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: check mips abi x linker emulation compatibility


[... catching up after having noticed I was kicked off the list, sigh.]

On 7 May 2003, Alexandre Oliva wrote:

> Here's a revised patch, that passes all tests on mips64-linux, and
> doesn't introduce any regression on mips-elf.  Ok?
[...]
> Index: gas/configure.in
> ===================================================================
> RCS file: /cvs/uberbaum/gas/configure.in,v
> retrieving revision 1.129
> diff -u -p -r1.129 configure.in
> --- gas/configure.in 28 Apr 2003 23:48:42 -0000 1.129
> +++ gas/configure.in 7 May 2003 03:57:08 -0000
> @@ -580,12 +580,26 @@ changequote([,])dnl
>  	    mips_default_64bit=0
>  	    ;;
>  	esac
> +	# Decide which ABI to target by default.
> +	case ${target} in
> +	  mips64*-linux* | mips-sgi-irix6*)
> +	    mips_default_abi=N32_ABI
> +	    ;;
> +	  mips*-linux*)
> +	    mips_default_abi=O32_ABI
> +	    ;;
> +	  *)
> +	    mips_default_abi=NO_ABI
> +	    ;;
> +	esac
>  	AC_DEFINE_UNQUOTED(MIPS_CPU_STRING_DEFAULT, "$mips_cpu",
>  			   [Default CPU for MIPS targets. ])
>  	AC_DEFINE_UNQUOTED(USE_E_MIPS_ABI_O32, $use_e_mips_abi_o32,
>  			   [Allow use of E_MIPS_ABI_O32 on MIPS targets. ])
>  	AC_DEFINE_UNQUOTED(MIPS_DEFAULT_64BIT, $mips_default_64bit,
>  			   [Generate 64-bit code by default on MIPS targets. ])
> +	AC_DEFINE_UNQUOTED(MIPS_DEFAULT_ABI, $mips_default_abi,
> +			   [Choose a default ABI for MIPS targets. ])
>  	;;
>      esac
>  

 I would really like to see the switch above as:

    case ${target} in
      mips64*-linux*)
	mips_default_abi=N64_ABI
	;;
      mipsn32*-linux* | mips-sgi-irix6*)
	mips_default_abi=N32_ABI
	;;
      mips*-linux*)
	mips_default_abi=O32_ABI
	;;
      *)
	mips_default_abi=NO_ABI
	;;
    esac

so that one can select which one of the two: n32, (n)64 ABIs he wants as a
default.

 I have a patch that complements the change for bfd and ld, I'm sending
immediately for a discussion.

-- 
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: macro@ds2.pg.gda.pl, PGP key available        +


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