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]

Re: [PATCH, ARM] PR49448 incorrectly detecting big-endian arm-linux triplets


On 28/02/12 15:27, Richard Earnshaw wrote:
> The pattern to match a big-endian machine for linux is ambiguous as
> reported by the PR and can cause some little-endian triplets to be
> confused as big-endian.
> 
> This patch makes the string unambiguous.
> 
> R.
> 
> 	* config.gcc (arm*-*-linux*): Use an unambiguous pattern for
> 	detecting big-endian triplets.
> 
> 
> be-lin.patch
> 
> 
> Index: config.gcc
> ===================================================================
> --- config.gcc	(revision 184624)
> +++ config.gcc	(working copy)
> @@ -825,7 +825,7 @@ arm*-*-netbsdelf*)
>  arm*-*-linux*)			# ARM GNU/Linux with ELF
>  	tm_file="dbxelf.h elfos.h gnu-user.h linux.h linux-android.h glibc-stdint.h arm/elf.h arm/linux-gas.h arm/linux-elf.h"
>  	case $target in
> -	arm*b-*)
> +	arm*b-*-linux*)
>  		tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=1"
>  		;;
>  	esac

For the record, I've back-ported this patch to gcc-4.5 and gcc-4.6.

R.


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