diff options
author | Mike Frysinger <vapier@gentoo.org> | 2016-01-09 05:58:01 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2016-01-10 03:36:32 -0500 |
commit | 347fe5bb868b7383d4f6942894b31ecf1da6894e (patch) | |
tree | 4b72385d8aefd9d4e35121faa027755c08913a82 /sim/m32c | |
parent | 0dc73ef7c304e6ffc9ce43b2131c77553a74e1d4 (diff) | |
download | gdb-347fe5bb868b7383d4f6942894b31ecf1da6894e.zip gdb-347fe5bb868b7383d4f6942894b31ecf1da6894e.tar.gz 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/m32c')
-rw-r--r-- | sim/m32c/ChangeLog | 4 | ||||
-rwxr-xr-x | sim/m32c/configure | 39 |
2 files changed, 40 insertions, 3 deletions
diff --git a/sim/m32c/ChangeLog b/sim/m32c/ChangeLog index 1aeb75f..0b42c84 100644 --- a/sim/m32c/ChangeLog +++ b/sim/m32c/ChangeLog @@ -6,6 +6,10 @@ * configure: Regenerate. +2016-01-10 Mike Frysinger <vapier@gentoo.org> + + * configure: Regenerate. + 2016-01-09 Mike Frysinger <vapier@gentoo.org> * config.in, configure: Regenerate. diff --git a/sim/m32c/configure b/sim/m32c/configure index c083a20..3ade132 100755 --- a/sim/m32c/configure +++ b/sim/m32c/configure @@ -752,6 +752,7 @@ enable_sim_debug enable_sim_stdio enable_sim_trace enable_sim_profile +enable_sim_inline with_pkgversion with_bugurl enable_werror @@ -1400,6 +1401,8 @@ Optional Features: --enable-sim-trace=opts Enable tracing of simulated programs --enable-sim-profile=opts Enable profiling flags + --enable-sim-inline=inlines + Specify which functions should be inlined --enable-werror treat compile warnings as errors --enable-build-warnings enable build-time compiler warnings if gcc is used --enable-sim-build-warnings @@ -3997,7 +4000,6 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu -sim_inline="-DDEFAULT_INLINE=0" @@ -12833,7 +12835,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 12836 "configure" +#line 12838 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -12939,7 +12941,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 12942 "configure" +#line 12944 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -13293,6 +13295,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 : |