summaryrefslogtreecommitdiff
path: root/gcc/config/arm
diff options
context:
space:
mode:
authorYamaArashi <shadow962@live.com>2016-03-08 23:25:19 -0800
committerYamaArashi <shadow962@live.com>2016-03-08 23:25:19 -0800
commit7444c4f6f7881c4700f8c8cd4c87d3648f9c85a3 (patch)
tree2501ee3e1dbcdb1147a80588ae9dfb2e6d06aa68 /gcc/config/arm
parent08234586501ffddc186f6e254ce6847faa139f5f (diff)
remove big-endian target support
Diffstat (limited to 'gcc/config/arm')
-rwxr-xr-xgcc/config/arm/t-thumb-elf6
-rwxr-xr-xgcc/config/arm/thumb.c4
-rwxr-xr-xgcc/config/arm/thumb.h27
3 files changed, 7 insertions, 30 deletions
diff --git a/gcc/config/arm/t-thumb-elf b/gcc/config/arm/t-thumb-elf
index da391b9..3e940f8 100755
--- a/gcc/config/arm/t-thumb-elf
+++ b/gcc/config/arm/t-thumb-elf
@@ -24,9 +24,9 @@ dp-bit.c: $(srcdir)/config/fp-bit.c
cat $(srcdir)/config/fp-bit.c >> dp-bit.c
# Avoid building a duplicate set of libraries for the default endian-ness.
-MULTILIB_OPTIONS = mlittle-endian/mbig-endian mno-thumb-interwork/mthumb-interwork
-MULTILIB_DIRNAMES = le be normal interwork
-MULTILIB_MATCHES = mbig-endian=mbe mlittle-endian=mle
+MULTILIB_OPTIONS = mno-thumb-interwork/mthumb-interwork
+MULTILIB_DIRNAMES = normal interwork
+MULTILIB_MATCHES =
LIBGCC = stmp-multilib
INSTALL_LIBGCC = install-multilib
diff --git a/gcc/config/arm/thumb.c b/gcc/config/arm/thumb.c
index e9ce13b..8953376 100755
--- a/gcc/config/arm/thumb.c
+++ b/gcc/config/arm/thumb.c
@@ -1365,13 +1365,13 @@ thumb_print_operand(FILE *f, rtx x, int code)
case 'Q':
if (REGNO(x) > 15)
abort();
- fputs(reg_names[REGNO(x) + (WORDS_BIG_ENDIAN ? 1 : 0)], f);
+ fputs(reg_names[REGNO(x)], f);
return;
case 'R':
if (REGNO(x) > 15)
abort();
- fputs(reg_names[REGNO(x) + (WORDS_BIG_ENDIAN ? 0 : 1)], f);
+ fputs(reg_names[REGNO(x) + 1], f);
return;
case 'H':
diff --git a/gcc/config/arm/thumb.h b/gcc/config/arm/thumb.h
index ac94ac2..600520f 100755
--- a/gcc/config/arm/thumb.h
+++ b/gcc/config/arm/thumb.h
@@ -41,23 +41,13 @@ Boston, MA 02111-1307, USA. */
#define CPP_PREDEFINES "-Dthumb -D__thumb -Acpu(arm) -Amachine(arm)"
#endif
-#ifndef CPP_SPEC
-#define CPP_SPEC "\
-%{mbig-endian:-D__ARMEB__ -D__THUMBEB__} \
-%{mbe:-D__ARMEB__ -D__THUMBEB__} \
-%{!mbe: %{!mbig-endian:-D__ARMEL__ -D__THUMBEL__}} \
-"
-#endif
-
#ifndef ASM_SPEC
-#define ASM_SPEC "-marm7tdmi %{mthumb-interwork:-mthumb-interwork} %{mbig-endian:-EB}"
+#define ASM_SPEC "-marm7tdmi %{mthumb-interwork:-mthumb-interwork}"
#endif
-#define LINK_SPEC "%{mbig-endian:-EB} -X"
+#define LINK_SPEC "-X"
#define TARGET_VERSION fputs (" (ARM/THUMB:generic)", stderr);
-/* Nonzero if we should compile with BYTES_BIG_ENDIAN set to 1. */
-#define THUMB_FLAG_BIG_END 0x0001
#define ARM_FLAG_THUMB 0x1000 /* same as in arm.h */
#define THUMB_FLAG_CALLER_SUPER_INTERWORKING 0x80000
@@ -68,7 +58,6 @@ Boston, MA 02111-1307, USA. */
/* Run-time compilation parameters selecting different hardware/software subsets. */
extern int target_flags;
#define TARGET_DEFAULT 0 /* ARM_FLAG_THUMB */
-#define TARGET_BIG_END (target_flags & THUMB_FLAG_BIG_END)
#define TARGET_THUMB_INTERWORK (target_flags & ARM_FLAG_THUMB)
/* Set if calls via function pointers should assume that their
@@ -85,8 +74,6 @@ extern int target_flags;
#define TARGET_SWITCHES \
{ \
- {"big-endian", THUMB_FLAG_BIG_END}, \
- {"little-endian", -THUMB_FLAG_BIG_END}, \
{"thumb-interwork", ARM_FLAG_THUMB}, \
{"no-thumb-interwork", -ARM_FLAG_THUMB}, \
{"caller-super-interworking", THUMB_FLAG_CALLER_SUPER_INTERWORKING}, \
@@ -350,16 +337,6 @@ do { \
/* Storage Layout */
-/* Define this is most significant bit is lowest numbered in
- instructions that operate on numbered bit-fields. */
-#define BITS_BIG_ENDIAN 0
-
-/* Define this if most significant byte of a word is the lowest
- numbered. */
-#define BYTES_BIG_ENDIAN (TARGET_BIG_END != 0)
-
-#define WORDS_BIG_ENDIAN (BYTES_BIG_ENDIAN)
-
#define FLOAT_WORDS_BIG_ENDIAN 1
#define BITS_PER_UNIT 8