aboutsummaryrefslogtreecommitdiff
path: root/sim/erc32/end.c
diff options
context:
space:
mode:
authorJiri Gaisler <jiri@gaisler.se>2015-03-16 01:14:09 -0400
committerMike Frysinger <vapier@gentoo.org>2015-03-16 01:16:35 -0400
commit9c5f41df36176d86afa65fc9b69b8fd6f6044547 (patch)
tree76a3dc2a8f5fff59c7e9a2fd7d3113455fed669e /sim/erc32/end.c
parenta4f851ffab57821a4904a9a28d8503500b77200e (diff)
downloadgdb-9c5f41df36176d86afa65fc9b69b8fd6f6044547.zip
gdb-9c5f41df36176d86afa65fc9b69b8fd6f6044547.tar.gz
gdb-9c5f41df36176d86afa65fc9b69b8fd6f6044547.tar.bz2
sim/erc32: use SIM_AC_OPTION_HOSTENDIAN to probe for host endianess
Diffstat (limited to 'sim/erc32/end.c')
-rw-r--r--sim/erc32/end.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/sim/erc32/end.c b/sim/erc32/end.c
deleted file mode 100644
index 9337198..0000000
--- a/sim/erc32/end.c
+++ /dev/null
@@ -1,27 +0,0 @@
-#include "config.h"
-#include <stdio.h>
-
-int
-main()
-{
-
- unsigned int u1;
- char *c;
- double d1;
- float *f1;
-
- c = (char *) &u1;
- u1 = 0x0F;
- if (c[0] == 0x0F)
- puts("#define HOST_LITTLE_ENDIAN\n");
- else
- puts("#define HOST_BIG_ENDIAN\n");
-
- d1 = 1.0;
- f1 = (float *) &d1;
- if (*((int *) f1) != 0x3ff00000)
- puts("#define HOST_LITTLE_ENDIAN_FLOAT\n");
- else
- puts("#define HOST_BIG_ENDIAN_FLOAT\n");
- return 0;
-}