This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] microblaze-rtems Add TARGET_BIG_ENDIAN_DEFAULT
- From: Ralf Corsepius <ralf dot corsepius at rtems dot org>
- To: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, Michael Eager <eager at eagerm dot com>
- Date: Sat, 07 Dec 2013 04:13:03 +0100
- Subject: [patch] microblaze-rtems Add TARGET_BIG_ENDIAN_DEFAULT
- Authentication-results: sourceware.org; auth=none
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
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"