microblaze-rtems Add TARGET_BIG_ENDIAN_DEFAULT

Submitted by Ralf Corsepius on Dec. 7, 2013, 3:13 a.m.

Details

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

Commit Message

Ralf Corsepius Dec. 7, 2013, 3:13 a.m.
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
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.

Patch hide | download patch | download mbox

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"