diff mbox

microblaze-rtems Add TARGET_BIG_ENDIAN_DEFAULT

Message ID 52A2923F.5000209@rtems.org
State New
Headers show

Commit Message

Ralf Corsepius Dec. 7, 2013, 3:13 a.m. UTC
Hi,

I intend to the patch below to gcc-trunk and 4.8-branch:

It's a partial sync of the microblaze-rtems* section in gcc/config.gcc 
with microblaze*-*-elf's:

Add TARGET_BIG_ENDIAN_DEFAULT-switch for microblaze*-*-rtems*.

Ralf

Comments

Michael Eager Dec. 7, 2013, noon UTC | #1
On 12/06/13 19:13, Ralf Corsepius wrote:
> Hi,
>
> I intend to the patch below to gcc-trunk and 4.8-branch:
>
> It's a partial sync of the microblaze-rtems* section in gcc/config.gcc with microblaze*-*-elf's:
>
> Add TARGET_BIG_ENDIAN_DEFAULT-switch for microblaze*-*-rtems*.
>
> Ralf

OK.
diff mbox

Patch

2013-12-07  Ralf Corsépius  <ralf.corsepius@rtems.org>

	* config.gcc (microblaze*-*-rtems*): Add TARGET_BIG_ENDIAN_DEFAULT.

Index: config.gcc
===================================================================
--- config.gcc	(revision 205770)
+++ config.gcc	(working copy)
@@ -1887,6 +1887,14 @@ 
 	tmake_file="${tmake_file} microblaze/t-microblaze-linux"
 	;;
 microblaze*-*-rtems*)
+	case $target in
+		microblazeel-*)
+			tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=0"
+			;;
+		microblaze-*)
+			tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=4321"
+			;;
+	esac
 	tm_file="${tm_file} dbxelf.h"
 	tm_file="${tm_file} microblaze/rtems.h rtems.h newlib-stdint.h"
 	c_target_objs="${c_target_objs} microblaze-c.o"