aboutsummaryrefslogtreecommitdiff
path: root/sim/mips
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2016-01-09 05:58:01 -0500
committerMike Frysinger <vapier@gentoo.org>2016-01-10 03:36:32 -0500
commit347fe5bb868b7383d4f6942894b31ecf1da6894e (patch)
tree4b72385d8aefd9d4e35121faa027755c08913a82 /sim/mips
parent0dc73ef7c304e6ffc9ce43b2131c77553a74e1d4 (diff)
downloadfsf-binutils-gdb-347fe5bb868b7383d4f6942894b31ecf1da6894e.zip
fsf-binutils-gdb-347fe5bb868b7383d4f6942894b31ecf1da6894e.tar.gz
fsf-binutils-gdb-347fe5bb868b7383d4f6942894b31ecf1da6894e.tar.bz2
sim: allow the inline configure option everywhere
Currently ports have to call SIM_AC_OPTION_INLINE explicitly in order to make the configure flag available. There's no real reason to not allow this flag for all ports, so move it to the common sim macro. This way we get standard behavior across all ports too.
Diffstat (limited to 'sim/mips')
-rw-r--r--sim/mips/ChangeLog5
-rwxr-xr-xsim/mips/configure82
-rw-r--r--sim/mips/configure.ac1
3 files changed, 39 insertions, 49 deletions
diff --git a/sim/mips/ChangeLog b/sim/mips/ChangeLog
index f7c5ae8..21e832c 100644
--- a/sim/mips/ChangeLog
+++ b/sim/mips/ChangeLog
@@ -1,5 +1,10 @@
2016-01-10 Mike Frysinger <vapier@gentoo.org>
+ * configure.ac (SIM_AC_OPTION_INLINE): Delete call.
+ * configure: Regenerate.
+
+2016-01-10 Mike Frysinger <vapier@gentoo.org>
+
* configure: Regenerate.
2016-01-10 Mike Frysinger <vapier@gentoo.org>
diff --git a/sim/mips/configure b/sim/mips/configure
index 16427de..acd36b2 100755
--- a/sim/mips/configure
+++ b/sim/mips/configure
@@ -765,9 +765,9 @@ enable_sim_debug
enable_sim_stdio
enable_sim_trace
enable_sim_profile
+enable_sim_inline
with_pkgversion
with_bugurl
-enable_sim_inline
enable_sim_alignment
enable_werror
enable_build_warnings
@@ -4043,7 +4043,6 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
-sim_inline="-DDEFAULT_INLINE=0"
@@ -12879,7 +12878,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 12882 "configure"
+#line 12881 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -12985,7 +12984,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 12988 "configure"
+#line 12987 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -13339,6 +13338,37 @@ fi
+sim_inline="-DDEFAULT_INLINE=0"
+# Check whether --enable-sim-inline was given.
+if test "${enable_sim_inline+set}" = set; then :
+ enableval=$enable_sim_inline; sim_inline=""
+case "$enableval" in
+ no) sim_inline="-DDEFAULT_INLINE=0";;
+ 0) sim_inline="-DDEFAULT_INLINE=0";;
+ yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
+ 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
+ *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
+ new_flag=""
+ case "$x" in
+ *_INLINE=*) new_flag="-D$x";;
+ *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
+ *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
+ *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
+ esac
+ if test x"$sim_inline" = x""; then
+ sim_inline="$new_flag"
+ else
+ sim_inline="$sim_inline $new_flag"
+ fi
+ done;;
+esac
+if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
+ echo "Setting inline flags = $sim_inline" 6>&1
+fi
+fi
+
+
+
# Check whether --with-pkgversion was given.
if test "${with_pkgversion+set}" = set; then :
@@ -13442,50 +13472,6 @@ sim_link_links="${sim_link_links} targ-vals.def"
-
-default_sim_inline=""
-# Check whether --enable-sim-inline was given.
-if test "${enable_sim_inline+set}" = set; then :
- enableval=$enable_sim_inline; sim_inline=""
-case "$enableval" in
- no) sim_inline="-DDEFAULT_INLINE=0";;
- 0) sim_inline="-DDEFAULT_INLINE=0";;
- yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
- 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
- *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
- new_flag=""
- case "$x" in
- *_INLINE=*) new_flag="-D$x";;
- *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
- *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
- *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
- esac
- if test x"$sim_inline" = x""; then
- sim_inline="$new_flag"
- else
- sim_inline="$sim_inline $new_flag"
- fi
- done;;
-esac
-if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
- echo "Setting inline flags = $sim_inline" 6>&1
-fi
-else
-
-if test "x$cross_compiling" = "xno"; then
- if test x"$GCC" != "x" -a x"${default_sim_inline}" != "x" ; then
- sim_inline="${default_sim_inline}"
- if test x"$silent" != x"yes"; then
- echo "Setting inline flags = $sim_inline" 6>&1
- fi
- else
- sim_inline=""
- fi
-else
- sim_inline="-DDEFAULT_INLINE=0"
-fi
-fi
-
wire_alignment="NONSTRICT_ALIGNMENT"
default_alignment=""
diff --git a/sim/mips/configure.ac b/sim/mips/configure.ac
index 4e51e0b..c21faaf 100644
--- a/sim/mips/configure.ac
+++ b/sim/mips/configure.ac
@@ -6,7 +6,6 @@ sinclude(../common/acinclude.m4)
SIM_AC_COMMON
dnl Options available in this module
-SIM_AC_OPTION_INLINE()
SIM_AC_OPTION_ALIGNMENT(NONSTRICT_ALIGNMENT)
SIM_AC_OPTION_WARNINGS
SIM_AC_OPTION_RESERVED_BITS(1)