mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 14:49:38 +08:00
Unify (well almost) --enable-build-warnings configuration option
across GDB and SIM directories.
This commit is contained in:
@ -1,3 +1,96 @@
|
||||
Wed Oct 28 12:00:57 1998 Andrew Cagney <cagney@b1.cygnus.com>
|
||||
|
||||
* aclocal.m4 (enable-build-warnings): Replace
|
||||
enable-sim-warnings. Extend =LIST syntax so that prepend and
|
||||
append of options is possible. Drop -Werror, add
|
||||
-Wstrict-prototypes for GDB compatibility.
|
||||
* Make-common.in (SIM_WARNINGS): Update.
|
||||
|
||||
Mon Oct 19 13:56:32 1998 Doug Evans <devans@seba.cygnus.com>
|
||||
|
||||
* Make-common.in (CGEN_INCLUDE_DEPS): Define.
|
||||
(sim-core.o): Delete duplicate dependence on $(SIM_EXTRA_DEPS).
|
||||
(sim-cpu.o,sim-endian.o,sim-hw.o): Ditto.
|
||||
(cgen-run.o,cgen-scache.o,cgen-trace.o,cgen-utils.o): Delete
|
||||
explicit cgen header dependencies, require SIM_EXTRA_DEPS to include
|
||||
CGEN_INCLUDE_DEPS.
|
||||
* cgen-cpu.h: New file.
|
||||
* cgen-engine.h: New file.
|
||||
* cgen-scache.h: New file.
|
||||
* cgen-sim.h: Delete portions moved to new files.
|
||||
* genmloop.sh: Generate two files eng.hin,mloop.cin explicitly,
|
||||
rather than sending result to stdout.
|
||||
|
||||
Fri Oct 9 14:20:22 1998 Doug Evans <devans@seba.cygnus.com>
|
||||
|
||||
* Make-common.in (sim-reg.o): New rule.
|
||||
(cgen-run.o): New rule.
|
||||
* cgen-ops.h: Delete many BI macros. Change all UBI -> BI.
|
||||
* cgen-run.c (prime_cpu): New function.
|
||||
* cgen-scache.c: Add pseudo-basic-block (pbb) scaching support.
|
||||
(scache_option_handler, case OPTION_PROFILE_SCACHE): Handle explicitly
|
||||
mentioned cpu.
|
||||
(scache_flush_cpu,scache_lookup,scache_lookup_or_alloc): New fns.
|
||||
* cgen-sim.h (CGEN_INSN_VIRTUAL_TYPE): New enum.
|
||||
(CGEN_INSN_VIRTUAL_P): New macro.
|
||||
(SEM_PC): New typedef.
|
||||
(SEMANTIC_FN): Change type of result to SEM_PC.
|
||||
(SEM_SET_FULL_CODE,SEM_SET_FAST_CODE,SEM_SET_CODE): New macros.
|
||||
(IDESC_CTI_P,IDESC_SKIP_P): New macros.
|
||||
(SCACHE_MAP): New typedef.
|
||||
(CPU_SCACHE): Add pbb support.
|
||||
(scace_lookup,scache_lookup_or_alloc,scache_flush_cpu): Declare.
|
||||
(SEM_BRANCH_INIT_EXTRACT,SEM_BRANCH_INIT,SEM_BRANCH_FINI): New macros.
|
||||
(CGEN_CPU): New members running_p,insn_count,{fast,full}_engine_fn,
|
||||
max_slice_insns.
|
||||
(INSN_NAME): Delete.
|
||||
(cgen_insn_name): Declare.
|
||||
(sim_engine_invalid_insn): Renamed from sim_engine_illegal_insn.
|
||||
* cgen-trace.c (trace_buf): Shrink from 1024 to 256 bytes.
|
||||
(first_insn_p): Make static.
|
||||
(trace_insn): Handle virtual insns specially.
|
||||
(cgen_trace_printf): Ensure we haven't overflowed the buffer.
|
||||
* cgen-types.h (UBI): Delete.
|
||||
(MODE_TYPE): New enum.
|
||||
(HOSTINT,HOSTUINT,HOSTPTR): Delete.
|
||||
* cgen-utils.c (mode_names): Delete UBI. Add INT,UINT,PTR.
|
||||
(cgen_virtual_opcode_table): New global.
|
||||
(cgen_insn_name): New function.
|
||||
(sim_disassemble_insn): Ignore virtual insns.
|
||||
* genmloop.sh: Delete top level loop generation. Add pbb support.
|
||||
* sim-cpu.h (CPU_INSN_NAME_FN): New typedef.
|
||||
(sim_cpu_base): New members max_insns,insn_name,model_data.
|
||||
(CPU_PC_GET,CPU_PC_SET): New macros.
|
||||
(sim_pc_get,sim_pc_set): Declare.
|
||||
* sim-model.c (model_set): Call model init fn.
|
||||
* sim-model.h (MODEL_FN): New typedef.
|
||||
(INSN_TIMING): New member model_fn.
|
||||
(MODEL): New members num,init.
|
||||
* sim-profile.c (sim_profile_print_bar): Renamed from print_bar.
|
||||
All callers updated.
|
||||
(profile_insn_init): New fn.
|
||||
(profile_print_insn): Update, INSN_NAME -> CPU_INSN_NAME.
|
||||
Exit early if insn profiling not supported.
|
||||
(profile_print_memory): Update, MAX_MODES -> MODE_TARGET_MAX.
|
||||
(profile_install): Record profile_insn_init as init fn.
|
||||
(profile_uninstall): Free PROFILE_INSN_COUNT if non-null.
|
||||
* sim-profile.h: Update, MAX_MODES -> MODE_TARGET_MAX.
|
||||
(PROFILE_DATA): Delete member exec_time.
|
||||
Change insn_count to pointer to array, rather than the array.
|
||||
(sim_profile_print_bar): Declare.
|
||||
|
||||
Wed Oct 7 16:56:42 1998 Doug Evans <devans@seba.cygnus.com>
|
||||
|
||||
* cgen-run.c: New file.
|
||||
* sim-reg.c: New file.
|
||||
|
||||
Mon Sep 14 10:58:19 1998 Frank Ch. Eigler <fche@cygnus.com>
|
||||
|
||||
* aclocal.m4: Add checks for -lsocket and -lnsl.
|
||||
|
||||
* dv-sockser.c (dv_sockser_init): Use SO_REUSEADDR to
|
||||
allow local port reuse on listening socket.
|
||||
|
||||
Tue Sep 1 15:36:52 1998 Frank Ch. Eigler <fche@cygnus.com>
|
||||
|
||||
* sim-config.h: Remove reference to linux kernel header.
|
||||
|
@ -94,7 +94,7 @@ SIM_RESERVED_BITS = @sim_reserved_bits@
|
||||
SIM_SCACHE = @sim_scache@
|
||||
SIM_SMP = @sim_smp@
|
||||
SIM_STDCALL = @sim_stdcall@
|
||||
SIM_WARNINGS = @sim_warnings@
|
||||
SIM_WARNINGS = @build_warnings@
|
||||
SIM_XOR_ENDIAN = @sim_xor_endian@
|
||||
|
||||
HDEFINES = @HDEFINES@
|
||||
@ -175,7 +175,13 @@ SIM_NEW_COMMON_OBJS = \
|
||||
\
|
||||
$(SIM_HW_OBJS) \
|
||||
|
||||
|
||||
CGEN_INCLUDE_DEPS = \
|
||||
$(srccom)/cgen-types.h \
|
||||
$(srccom)/cgen-sim.h \
|
||||
$(srccom)/cgen-scache.h \
|
||||
$(srccom)/cgen-cpu.h \
|
||||
$(srccom)/cgen-trace.h \
|
||||
$(srcdir)/../../include/opcode/cgen.h
|
||||
|
||||
## End COMMON_PRE_CONFIG_FRAG
|
||||
|
||||
@ -357,16 +363,13 @@ sim-config.o: $(srccom)/sim-config.c $(sim-config_h) \
|
||||
$(CC) -c $(srccom)/sim-config.c $(ALL_CFLAGS)
|
||||
|
||||
sim-core.o: $(srccom)/sim-core.c $(sim_main_headers) \
|
||||
$(sim-core_h) $(sim-n-core_h) \
|
||||
$(SIM_EXTRA_DEPS)
|
||||
$(sim-core_h) $(sim-n-core_h)
|
||||
$(CC) -c $(srccom)/sim-core.c $(ALL_CFLAGS)
|
||||
|
||||
sim-cpu.o: $(srccom)/sim-cpu.c $(sim_main_headers) \
|
||||
$(SIM_EXTRA_DEPS)
|
||||
sim-cpu.o: $(srccom)/sim-cpu.c $(sim_main_headers)
|
||||
$(CC) -c $(srccom)/sim-cpu.c $(ALL_CFLAGS)
|
||||
|
||||
sim-endian.o: $(srccom)/sim-endian.c $(sim-endian_h) $(sim-n-endian_h) \
|
||||
$(SIM_EXTRA_DEPS)
|
||||
sim-endian.o: $(srccom)/sim-endian.c $(sim-endian_h) $(sim-n-endian_h)
|
||||
$(CC) -c $(srccom)/sim-endian.c $(ALL_CFLAGS)
|
||||
|
||||
sim-engine.o: $(srccom)/sim-engine.c $(sim_main_headers) $(sim-engine_h)
|
||||
@ -390,7 +393,7 @@ sim-hrw.o: $(srccom)/sim-hrw.c $(sim-assert_h) $(sim_core_h) \
|
||||
$(SIM_EXTRA_DEPS)
|
||||
$(CC) -c $(srccom)/sim-hrw.c $(ALL_CFLAGS)
|
||||
|
||||
sim-hw.o: $(srccom)/sim-hw.c $(sim_main_headers) $(SIM_EXTRA_DEPS)
|
||||
sim-hw.o: $(srccom)/sim-hw.c $(sim_main_headers)
|
||||
$(CC) -c $(srccom)/sim-hw.c $(ALL_CFLAGS)
|
||||
|
||||
sim-info.o: $(srccom)/sim-info.c $(sim-assert_h) \
|
||||
@ -424,6 +427,10 @@ sim-reason.o: $(srccom)/sim-reason.c $(sim_main_headers) \
|
||||
$(srcroot)/include/remote-sim.h
|
||||
$(CC) -c $(srccom)/sim-reason.c $(ALL_CFLAGS)
|
||||
|
||||
sim-reg.o: $(srccom)/sim-reg.c $(sim_main_headers) \
|
||||
$(srcroot)/include/remote-sim.h
|
||||
$(CC) -c $(srccom)/sim-reg.c $(ALL_CFLAGS)
|
||||
|
||||
sim-resume.o: $(srccom)/sim-resume.c $(sim_main_headers) \
|
||||
$(srcroot)/include/remote-sim.h
|
||||
$(CC) -c $(srccom)/sim-resume.c $(ALL_CFLAGS)
|
||||
@ -509,6 +516,7 @@ hw-properties.o: $(srccom)/hw-properties.c $(hw_main_headers)
|
||||
hw-tree.o: $(srccom)/hw-tree.c $(hw_main_headers) $(hw-tree_h)
|
||||
$(CC) -c $(srccom)/hw-tree.c $(ALL_CFLAGS)
|
||||
|
||||
# Devices.
|
||||
|
||||
dv-core.o: $(srccom)/dv-core.c $(hw_main_headers) $(sim_main_headers)
|
||||
$(CC) -c $(srccom)/dv-core.c $(ALL_CFLAGS)
|
||||
@ -519,29 +527,28 @@ dv-glue.o: $(srccom)/dv-glue.c $(hw_main_headers) $(sim_main_headers)
|
||||
dv-pal.o: $(srccom)/dv-pal.c $(hw_main_headers) $(sim_main_headers)
|
||||
$(CC) -c $(srccom)/dv-pal.c $(ALL_CFLAGS)
|
||||
|
||||
dv-sockser.o: $(srccom)/dv-sockser.h $(sim_main_headers)
|
||||
$(CC) -c $(srccom)/dv-sockser.c $(ALL_CFLAGS)
|
||||
|
||||
|
||||
nrun.o: $(srccom)/nrun.c config.h tconfig.h \
|
||||
$(srcroot)/include/remote-sim.h $(srcroot)/include/callback.h \
|
||||
$(sim_main_headers)
|
||||
$(CC) -c $(srccom)/nrun.c $(ALL_CFLAGS)
|
||||
|
||||
# Devices.
|
||||
|
||||
dv-sockser.o: $(srccom)/dv-sockser.h $(sim_main_headers)
|
||||
$(CC) -c $(srccom)/dv-sockser.c $(ALL_CFLAGS)
|
||||
|
||||
# CGEN support.
|
||||
|
||||
cgen-scache.o: $(srccom)/cgen-scache.c $(sim_main_headers) \
|
||||
$(srccom)/cgen-sim.h
|
||||
cgen-run.o: $(srccom)/cgen-run.c $(sim_main_headers)
|
||||
$(CC) -c $(srccom)/cgen-run.c $(ALL_CFLAGS)
|
||||
|
||||
cgen-scache.o: $(srccom)/cgen-scache.c $(sim_main_headers)
|
||||
$(CC) -c $(srccom)/cgen-scache.c $(ALL_CFLAGS)
|
||||
|
||||
cgen-trace.o: $(srccom)/cgen-trace.c $(sim_main_headers) \
|
||||
$(srccom)/cgen-sim.h $(srccom)/cgen-trace.h
|
||||
cgen-trace.o: $(srccom)/cgen-trace.c $(sim_main_headers)
|
||||
$(CC) -c $(srccom)/cgen-trace.c $(ALL_CFLAGS)
|
||||
|
||||
cgen-utils.o: $(srccom)/cgen-utils.c $(sim_main_headers) \
|
||||
$(srccom)/cgen-sim.h $(srccom)/cgen-mem.h $(srccom)/cgen-ops.h
|
||||
$(srccom)/cgen-mem.h $(srccom)/cgen-ops.h
|
||||
$(CC) -c $(srccom)/cgen-utils.c $(ALL_CFLAGS)
|
||||
|
||||
# Support targets.
|
||||
@ -550,7 +557,7 @@ install: install-common $(SIM_EXTRA_INSTALL)
|
||||
|
||||
install-common: installdirs
|
||||
n=`echo run | sed '$(program_transform_name)'`; \
|
||||
$(INSTALL_PROGRAM) run$(EXEEXT) $(bindir)/$$n
|
||||
$(INSTALL_PROGRAM) run$(EXEEXT) $(bindir)/$$n$(EXEEXT)
|
||||
n=`echo libsim.a | sed s/libsim.a/lib$(target_alias)-sim.a/`; \
|
||||
$(INSTALL_DATA) libsim.a $(libdir)/$$n ; \
|
||||
( cd $(libdir) ; $(RANLIB) $$n )
|
||||
@ -584,6 +591,7 @@ clean: $(SIM_EXTRA_CLEAN)
|
||||
if [ ! -f Make-common.in ] ; then \
|
||||
rm -f $(BUILT_SRC_FROM_COMMON) ; \
|
||||
fi
|
||||
rm -f tmp-mloop.hin tmp-mloop.h tmp-mloop.cin tmp-mloop.c
|
||||
|
||||
distclean mostlyclean maintainer-clean realclean: clean
|
||||
rm -f TAGS
|
||||
@ -614,49 +622,56 @@ stamp-h: config.in config.status
|
||||
|
||||
# CGEN support
|
||||
|
||||
SCHEME = @SCHEME@
|
||||
SCHEMEFLAGS = -s
|
||||
srccgen = $(srcroot)/cgen
|
||||
CGENDIR = @cgendir@
|
||||
CGEN = @cgen@
|
||||
CGENFLAGS = -v
|
||||
srccgen = $(CGENDIR)
|
||||
|
||||
CGEN_VERBOSE = -v
|
||||
CGEN_MAIN_SCM = $(srccgen)/object.scm $(srccgen)/utils.scm \
|
||||
CGEN_MAIN_SCM = $(srccgen)/cos.scm $(srccgen)/utils.scm \
|
||||
$(srccgen)/attr.scm $(srccgen)/enum.scm $(srccgen)/types.scm \
|
||||
$(srccgen)/utils-cgen.scm $(srccgen)/cpu.scm \
|
||||
$(srccgen)/mode.scm $(srccgen)/mach.scm \
|
||||
$(srccgen)/model.scm $(srccgen)/hardware.scm \
|
||||
$(srccgen)/ifield.scm $(srccgen)/iformat.scm \
|
||||
$(srccgen)/operand.scm $(srccgen)/insn.scm \
|
||||
$(srccgen)/cdl-c.scm $(srccgen)/sim.scm
|
||||
$(srccgen)/rtl.scm $(srccgen)/sim.scm
|
||||
CGEN_CPU_SCM = $(srccgen)/sim-cpu.scm $(srccgen)/sim-model.scm
|
||||
CGEN_DECODE_SCM = $(srccgen)/sim-decode.scm
|
||||
|
||||
# Various choices for which cpu specific files to generate.
|
||||
CGEN_CPU_EXTR = -E tmp-ext.c1
|
||||
CGEN_CPU_READ = -R tmp-read.c1
|
||||
CGEN_CPU_WRITE = -W tmp-write.c1
|
||||
CGEN_CPU_SEM = -S tmp-sem.c1
|
||||
CGEN_CPU_SEMSW = -W tmp-semsw.c1
|
||||
CGEN_CPU_SEMSW = -X tmp-semsw.c1
|
||||
|
||||
CGEN_FLAGS_TO_PASS = \
|
||||
CGEN=$(CGEN) \
|
||||
CGENFLAGS=$(CGENFLAGS)
|
||||
|
||||
# We store the generated files in the source directory until we decide to
|
||||
# ship a Scheme interpreter with gdb/binutils. Maybe we never will.
|
||||
|
||||
cgen-arch: force
|
||||
$(SHELL) $(srccom)/cgen.sh arch $(srcdir) \
|
||||
$(SCHEME) $(SCHEMEFLAGS) \
|
||||
$(srccgen) $(CGEN_VERBOSE) \
|
||||
$(CGEN) $(CGENDIR) $(CGENFLAGS) \
|
||||
$(arch) "$(FLAGS)" ignored ignored ignored ignored
|
||||
|
||||
cgen-cpu: force
|
||||
$(SHELL) $(srccom)/cgen.sh cpu $(srcdir) \
|
||||
$(SCHEME) $(SCHEMEFLAGS) \
|
||||
$(srccgen) $(CGEN_VERBOSE) \
|
||||
$(CGEN) $(CGENDIR) $(CGENFLAGS) \
|
||||
$(arch) "$(FLAGS)" $(cpu) $(mach) "$(SUFFIX)" "$(EXTRAFILES)"
|
||||
|
||||
cgen-decode: force
|
||||
$(SHELL) $(srccom)/cgen.sh decode $(srcdir) \
|
||||
$(SCHEME) $(SCHEMEFLAGS) \
|
||||
$(srccgen) $(CGEN_VERBOSE) \
|
||||
$(CGEN) $(CGENDIR) $(CGENFLAGS) \
|
||||
$(arch) "$(FLAGS)" $(cpu) $(mach) "$(SUFFIX)" ignored
|
||||
|
||||
cgen-cpu-decode: force
|
||||
$(SHELL) $(srccom)/cgen.sh cpu-decode $(srcdir) \
|
||||
$(CGEN) $(CGENDIR) $(CGENFLAGS) \
|
||||
$(arch) "$(FLAGS)" $(cpu) $(mach) "$(SUFFIX)" "$(EXTRAFILES)"
|
||||
|
||||
# end-sanitize-cygnus
|
||||
|
||||
## End COMMON_POST_CONFIG_FRAG
|
||||
|
153
sim/common/aclocal.m4
vendored
153
sim/common/aclocal.m4
vendored
@ -56,6 +56,10 @@ AC_CHECK_HEADERS(sys/time.h sys/resource.h)
|
||||
AC_CHECK_HEADERS(fcntl.h fpu_control.h)
|
||||
AC_CHECK_FUNCS(getrusage time sigaction __setfpucw)
|
||||
|
||||
# Check for socket libraries
|
||||
AC_CHECK_LIB(socket, bind)
|
||||
AC_CHECK_LIB(nsl, gethostbyname)
|
||||
|
||||
. ${srcdir}/../../bfd/configure.host
|
||||
|
||||
dnl Standard (and optional) simulator options.
|
||||
@ -201,6 +205,8 @@ AC_SUBST(sim_profile)
|
||||
dnl Types used by common code
|
||||
AC_TYPE_SIGNAL
|
||||
|
||||
dnl Detect exe extension
|
||||
AM_EXEEXT
|
||||
|
||||
dnl These are available to append to as desired.
|
||||
sim_link_files=
|
||||
@ -551,44 +557,65 @@ AC_SUBST(sim_default_model)
|
||||
|
||||
|
||||
dnl --enable-sim-hardware is for users of the simulator
|
||||
dnl arg[1] is a space separated list of devices that override the defaults
|
||||
dnl arg[2] is a space separated list of extra target specific devices.
|
||||
dnl arg[1] Enable sim-hw by default? ("yes" or "no")
|
||||
dnl arg[2] is a space separated list of devices that override the defaults
|
||||
dnl arg[3] is a space separated list of extra target specific devices.
|
||||
AC_DEFUN(SIM_AC_OPTION_HARDWARE,
|
||||
[
|
||||
sim_hardware="-DWITH_HW=1"
|
||||
sim_hw_obj="hw-device.o hw-ports.o hw-properties.o hw-base.o hw-tree.o sim-hw.o"
|
||||
hardware="ifelse([$1],,[core pal glue],[$1]) ifelse([$2],,,[$2])"
|
||||
if test x"[$1]" = x"yes"; then
|
||||
sim_hw_p=yes
|
||||
else
|
||||
sim_hw_p=no
|
||||
fi
|
||||
if test "[$2]"; then
|
||||
hardware="core pal glue"
|
||||
else
|
||||
hardware="core pal glue [$3]"
|
||||
fi
|
||||
sim_hw_cflags="-DWITH_HW=1"
|
||||
sim_hw="$hardware"
|
||||
sim_hw_objs="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([[^ ]][[^ ]]*\)/dv-\1.o/g'`"
|
||||
AC_ARG_ENABLE(sim-hardware,
|
||||
[ --enable-sim-hardware=LIST Specify the hardware to be included in the build.],
|
||||
[
|
||||
case "${enableval}" in
|
||||
yes) ;;
|
||||
no) hardware=""; sim_hardware="-DWITH_HW=0"; sim_hw_obj="";;
|
||||
,*) hardware="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
|
||||
*,) hardware="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
|
||||
*) hardware="`echo ${enableval} | sed -e 's/,/ /'`"'';;
|
||||
yes) sim_hw_p=yes;;
|
||||
no) sim_hw_p=no;;
|
||||
,*) sim_hw_p=yes; hardware="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
|
||||
*,) sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
|
||||
*) sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'`"'';;
|
||||
esac
|
||||
dnl remove duplicates
|
||||
sim_hw=""
|
||||
for i in x $hardware ; do
|
||||
case " $f " in
|
||||
x) ;;
|
||||
*" $i "*) ;;
|
||||
*) sim_hw="$sim_hw $i" ;;
|
||||
esac
|
||||
done
|
||||
sim_hw_obj="$sim_hw_obj `echo $sim_hw | sed -e 's/\([[^ ]][[^ ]]*\)/dv-\1.o/g'`"
|
||||
if test x"$silent" != x"yes" && test x"$hardware" != x""; then
|
||||
echo "Setting hardware to $sim_hardware, $sim_hw, $sim_hw_obj"
|
||||
if test "$sim_hw_p" != yes; then
|
||||
sim_hw_objs=
|
||||
sim_hw_cflags="-DWITH_HW=0"
|
||||
sim_hw=
|
||||
else
|
||||
sim_hw_cflags="-DWITH_HW=1"
|
||||
# remove duplicates
|
||||
sim_hw=""
|
||||
sim_hw_objs="\$(SIM_COMMON_HW_OBJS)"
|
||||
for i in x $hardware ; do
|
||||
case " $f " in
|
||||
x) ;;
|
||||
*" $i "*) ;;
|
||||
*) sim_hw="$sim_hw $i" ; sim_hw_objs="$sim_hw_objs dv-$i.o";;
|
||||
esac
|
||||
done
|
||||
fi
|
||||
if test x"$silent" != x"yes" && test "$sim_hw_p" = "yes"; then
|
||||
echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
|
||||
fi],[
|
||||
sim_hw="$hardware"
|
||||
sim_hw_obj="$sim_hw_obj `echo $sim_hw | sed -e 's/\([[^ ]][[^ ]]*\)/dv-\1.o/g'`"
|
||||
if test "$sim_hw_p" != yes; then
|
||||
sim_hw_objs=
|
||||
sim_hw_cflags="-DWITH_HW=0"
|
||||
sim_hw=
|
||||
fi
|
||||
if test x"$silent" != x"yes"; then
|
||||
echo "Setting hardware to $sim_hardware, $sim_hw, $sim_hw_obj"
|
||||
echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
|
||||
fi])dnl
|
||||
])
|
||||
AC_SUBST(sim_hardware)
|
||||
AC_SUBST(sim_hw_obj)
|
||||
AC_SUBST(sim_hw_cflags)
|
||||
AC_SUBST(sim_hw_objs)
|
||||
AC_SUBST(sim_hw)
|
||||
|
||||
|
||||
@ -755,22 +782,27 @@ fi],[sim_xor_endian="-DWITH_XOR_ENDIAN=${default_sim_xor_endian}"])dnl
|
||||
AC_SUBST(sim_xor_endian)
|
||||
|
||||
|
||||
dnl --enable-sim-warnings is for developers of the simulator.
|
||||
dnl --enable-build-warnings is for developers of the simulator.
|
||||
dnl it enables extra GCC specific warnings.
|
||||
AC_DEFUN(SIM_AC_OPTION_WARNINGS,
|
||||
[
|
||||
AC_ARG_ENABLE(sim-warnings,
|
||||
[ --enable-sim-warnings=opts Extra CFLAGS for turning on compiler warnings],
|
||||
[case "${enableval}" in
|
||||
yes) sim_warnings="-Werror -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations ";;
|
||||
no) sim_warnings="-w";;
|
||||
*) sim_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
|
||||
AC_ARG_ENABLE(build-warnings,
|
||||
[ --enable-build-warnings[=LIST] Enable build-time compiler warnings],
|
||||
[build_warnings="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations"
|
||||
case "${enableval}" in
|
||||
yes) ;;
|
||||
no) build_warnings="-w";;
|
||||
,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
|
||||
build_warnings="${build_warnings} ${t}";;
|
||||
*,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
|
||||
build_warnings="${t} ${build_warnings}";;
|
||||
*) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
|
||||
esac
|
||||
if test x"$silent" != x"yes" && test x"$sim_warnings" != x""; then
|
||||
echo "Setting warning flags = $sim_warnings" 6>&1
|
||||
fi],[sim_warnings=""])dnl
|
||||
if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
|
||||
echo "Setting warning flags = $build_warnings" 6>&1
|
||||
fi],[build_warnings=""])dnl
|
||||
])
|
||||
AC_SUBST(sim_warnings)
|
||||
AC_SUBST(build_warnings)
|
||||
|
||||
|
||||
dnl Generate the Makefile in a target specific directory.
|
||||
@ -1143,3 +1175,48 @@ AC_DEFUN(AM_LC_MESSAGES,
|
||||
fi
|
||||
fi])
|
||||
|
||||
# Check to see if we're running under Cygwin32, without using
|
||||
# AC_CANONICAL_*. If so, set output variable CYGWIN32 to "yes".
|
||||
# Otherwise set it to "no".
|
||||
|
||||
dnl AM_CYGWIN32()
|
||||
dnl You might think we can do this by checking for a cygwin32-specific
|
||||
dnl cpp define.
|
||||
AC_DEFUN(AM_CYGWIN32,
|
||||
[AC_CACHE_CHECK(for Cygwin32 environment, am_cv_cygwin32,
|
||||
[AC_TRY_COMPILE(,[int main () { return __CYGWIN32__; }],
|
||||
am_cv_cygwin32=yes, am_cv_cygwin32=no)
|
||||
rm -f conftest*])
|
||||
CYGWIN32=
|
||||
test "$am_cv_cygwin32" = yes && CYGWIN32=yes])
|
||||
|
||||
# Check to see if we're running under Win32, without using
|
||||
# AC_CANONICAL_*. If so, set output variable EXEEXT to ".exe".
|
||||
# Otherwise set it to "".
|
||||
|
||||
dnl AM_EXEEXT()
|
||||
dnl This knows we add .exe if we're building in the Cygwin32
|
||||
dnl environment. But if we're not, then it compiles a test program
|
||||
dnl to see if there is a suffix for executables.
|
||||
AC_DEFUN(AM_EXEEXT,
|
||||
dnl AC_REQUIRE([AC_PROG_CC])AC_REQUIRE([AM_CYGWIN32])
|
||||
AC_MSG_CHECKING([for executable suffix])
|
||||
[AC_CACHE_VAL(am_cv_exeext,
|
||||
[if test "$CYGWIN32" = yes; then
|
||||
am_cv_exeext=.exe
|
||||
else
|
||||
cat > am_c_test.c << 'EOF'
|
||||
int main() {
|
||||
/* Nothing needed here */
|
||||
}
|
||||
EOF
|
||||
${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5
|
||||
am_cv_exeext=`ls am_c_test.* | grep -v am_c_test.c | sed -e s/am_c_test//`
|
||||
rm -f am_c_test*])
|
||||
test x"${am_cv_exeext}" = x && am_cv_exeext=no
|
||||
fi
|
||||
EXEEXT=""
|
||||
test x"${am_cv_exeext}" != xno && EXEEXT=${am_cv_exeext}
|
||||
AC_MSG_RESULT(${am_cv_exeext})
|
||||
AC_SUBST(EXEEXT)])
|
||||
|
||||
|
522
sim/common/configure
vendored
522
sim/common/configure
vendored
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user