sim: drop host endian configure option
The --enable-sim-hostendian flag was purely so people had an escape route for when cross-compiling. This is because historically, AC_C_BIGENDIAN did not work in those cases. That was fixed a while ago though, so we can require that macro everywhere now and simplify a good bit of code.
This commit is contained in:
parent
1ac72f0659
commit
0cb8d8513c
96 changed files with 6648 additions and 5871 deletions
|
@ -36,6 +36,7 @@ AC_REQUIRE([AC_PROG_CC])
|
|||
AC_CONFIG_HEADER(ifelse([$1],,config.h,[$1]):config.in)
|
||||
AC_CANONICAL_SYSTEM
|
||||
AC_USE_SYSTEM_EXTENSIONS
|
||||
AC_C_BIGENDIAN
|
||||
AC_ARG_PROGRAM
|
||||
AC_PROG_INSTALL
|
||||
|
||||
|
@ -489,37 +490,6 @@ fi])dnl
|
|||
AC_SUBST(sim_endian)
|
||||
|
||||
|
||||
dnl --enable-sim-hostendian is for users of the simulator when
|
||||
dnl they find that AC_C_BIGENDIAN does not function correctly
|
||||
dnl (for instance in a canadian cross)
|
||||
AC_DEFUN([SIM_AC_OPTION_HOSTENDIAN],
|
||||
[
|
||||
AC_ARG_ENABLE(sim-hostendian,
|
||||
[AS_HELP_STRING([--enable-sim-hostendian=end],
|
||||
[Specify host byte endian orientation])],
|
||||
[case "${enableval}" in
|
||||
no) sim_hostendian="-DWITH_HOST_BYTE_ORDER=BFD_ENDIAN_UNKNOWN";;
|
||||
b*|B*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=BFD_ENDIAN_BIG";;
|
||||
l*|L*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=BFD_ENDIAN_LITTLE";;
|
||||
*) AC_MSG_ERROR("Unknown value $enableval for --enable-sim-hostendian"); sim_hostendian="";;
|
||||
esac
|
||||
if test x"$silent" != x"yes" && test x"$sim_hostendian" != x""; then
|
||||
echo "Setting hostendian flags = $sim_hostendian" 6>&1
|
||||
fi],[
|
||||
if test "x$cross_compiling" = "xno"; then
|
||||
AC_C_BIGENDIAN
|
||||
if test $ac_cv_c_bigendian = yes; then
|
||||
sim_hostendian="-DWITH_HOST_BYTE_ORDER=BFD_ENDIAN_BIG"
|
||||
else
|
||||
sim_hostendian="-DWITH_HOST_BYTE_ORDER=BFD_ENDIAN_LITTLE"
|
||||
fi
|
||||
else
|
||||
sim_hostendian="-DWITH_HOST_BYTE_ORDER=BFD_ENDIAN_UNKNOWN"
|
||||
fi])dnl
|
||||
])
|
||||
AC_SUBST(sim_hostendian)
|
||||
|
||||
|
||||
dnl --enable-sim-float is for developers of the simulator
|
||||
dnl It specifies the presence of hardware floating point
|
||||
dnl And optionally the bitsize of the floating point register.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue