mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-17 16:05:56 +08:00
sim: move sim-inline to the common code
This will allow us to build the common code with the same inline settings as the arch subdirs, and only do the test once.
This commit is contained in:
@ -1,3 +1,8 @@
|
||||
2021-06-20 Mike Frysinger <vapier@gentoo.org>
|
||||
|
||||
* aclocal.m4: Regenerate.
|
||||
* configure: Regenerate.
|
||||
|
||||
2021-06-19 Mike Frysinger <vapier@gentoo.org>
|
||||
|
||||
* aclocal.m4: Regenerate.
|
||||
|
1
sim/rx/aclocal.m4
vendored
1
sim/rx/aclocal.m4
vendored
@ -101,5 +101,4 @@ AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
|
||||
m4_include([../../config/override.m4])
|
||||
m4_include([../m4/sim_ac_common.m4])
|
||||
m4_include([../m4/sim_ac_option_hardware.m4])
|
||||
m4_include([../m4/sim_ac_option_inline.m4])
|
||||
m4_include([../m4/sim_ac_output.m4])
|
||||
|
35
sim/rx/configure
vendored
35
sim/rx/configure
vendored
@ -632,7 +632,6 @@ PACKAGE_TARNAME
|
||||
PACKAGE_NAME
|
||||
PATH_SEPARATOR
|
||||
SHELL
|
||||
sim_inline
|
||||
sim_hw
|
||||
sim_hw_objs
|
||||
sim_hw_cflags'
|
||||
@ -640,7 +639,6 @@ ac_subst_files=''
|
||||
ac_user_opts='
|
||||
enable_option_checking
|
||||
enable_maintainer_mode
|
||||
enable_sim_inline
|
||||
enable_cycle_accurate
|
||||
enable_sim_hardware
|
||||
'
|
||||
@ -1257,8 +1255,6 @@ Optional Features:
|
||||
--enable-maintainer-mode
|
||||
enable make rules and dependencies not useful (and
|
||||
sometimes confusing) to the casual installer
|
||||
--enable-sim-inline=inlines
|
||||
Specify which functions should be inlined
|
||||
--disable-cycle-accurate
|
||||
Disable cycle accurate simulation (faster runtime)
|
||||
--enable-sim-hardware=LIST
|
||||
@ -1722,37 +1718,6 @@ 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 --enable-cycle-accurate was given.
|
||||
if test "${enable_cycle_accurate+set}" = set; then :
|
||||
enableval=$enable_cycle_accurate; case "${enableval}" in
|
||||
|
Reference in New Issue
Block a user