aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2016-01-09 04:00:53 -0500
committerMike Frysinger <vapier@gentoo.org>2016-01-10 02:54:59 -0500
commit22be3fbeaccf50e3c0f58d0f7e9f7ed77effeaab (patch)
treebb7933fd15e5c4c05fd24fa3c1e01197789f8a89 /sim/ppc
parent7124407794aaa3762a25c26cd3a00a637f7241c9 (diff)
downloadgdb-22be3fbeaccf50e3c0f58d0f7e9f7ed77effeaab.zip
gdb-22be3fbeaccf50e3c0f58d0f7e9f7ed77effeaab.tar.gz
gdb-22be3fbeaccf50e3c0f58d0f7e9f7ed77effeaab.tar.bz2
sim: drop --enable-sim-cflags option
No other sub directory provides such a configuration option, so drop it from the sim dir as well. This cleans up a good bit of code in the process. If people want to use custom flags for just the sim, they can still run configure+make by hand in the sim subdir and use the normal CFLAGS settings.
Diffstat (limited to 'sim/ppc')
-rw-r--r--sim/ppc/ChangeLog9
-rw-r--r--sim/ppc/INSTALL36
-rw-r--r--sim/ppc/Makefile.in7
-rwxr-xr-xsim/ppc/configure19
-rw-r--r--sim/ppc/configure.ac13
5 files changed, 14 insertions, 70 deletions
diff --git a/sim/ppc/ChangeLog b/sim/ppc/ChangeLog
index ae770ac..25bdd6c 100644
--- a/sim/ppc/ChangeLog
+++ b/sim/ppc/ChangeLog
@@ -1,3 +1,12 @@
+2016-01-10 Mike Frysinger <vapier@gentoo.org>
+
+ * configure.ac: Delete --enable-sim-cflags and sim_cflags.
+ * configure: Regenerate.
+ * INSTALL: Delete all mention of --enable-sim-cflags.
+ * Makefile.in (SIM_CFLAGS): Delete.
+ (STD_CFLAGS, NOWARN_CFLAGS): Delete $(SIM_CFLAGS).
+ (psim): Likewise.
+
2016-01-06 Mike Frysinger <vapier@gentoo.org>
* sim_calls.c (sim_open): Mark argv const.
diff --git a/sim/ppc/INSTALL b/sim/ppc/INSTALL
index 8240ac7..9feac7b 100644
--- a/sim/ppc/INSTALL
+++ b/sim/ppc/INSTALL
@@ -197,36 +197,6 @@ Each PSIM specific option is discussed in detail below.
---enable-sim-cflags=<opts>
-
-
-Specify additional C compiler flags that are to be used when compiling
-just PSIM.
-
-PSIM places heavy demands on both the host machine and its C compiler. So that
-the builder has better control over the compiler the above option can be used
-to pass additional options to the compiler while PSIM is being built.
-
-Ex: No debug information
-
-PSIM can be built with everything inline. Unfortunately, because of
-all the debugging information generated the C compiler can grow very
-very large as a result. For GCC, the debug information can be
-restricted with the `-g0' option. To specify that this option should
-be include in the CFLAGS when compiling the psim source code use:
-
- --enable-sim-cflags=-g0
-
-Ex: Additional optimization flags
-
-A significant gain in performance can be achieved by tuning the
-optimization flags passed to the C compiler. For instance on an x86
-you may consider:
-
- --enable-sim-cflags='-g0 -O2 -fno-strength-reduce -f...'
-
-
-
--enable-sim-warnings=<flags>
@@ -757,8 +727,7 @@ TYPICAL CONFIGURATION OPTIONS:
--enable-sim-env=user \
--disable-sim-reserved-bits \
--disable-sim-assert \
- --disable-sim-trace \
- --enable-sim-cflags='-g0,-O2,-fno-strength-reduce,-fomit-frame-pointer'
+ --disable-sim-trace
OEA CODE ONLY:
@@ -792,5 +761,4 @@ TYPICAL CONFIGURATION OPTIONS:
--disable-sim-assert \
--disable-sim-trace \
--enable-sim-opcode=ppc-opcode-flat \
- --disable-sim-icache \
- --enable-sim-cflags='-g0,-O3,-fno-strength-reduce,-fomit-frame-pointer'
+ --disable-sim-icache
diff --git a/sim/ppc/Makefile.in b/sim/ppc/Makefile.in
index 6efa73f..139fc6c 100644
--- a/sim/ppc/Makefile.in
+++ b/sim/ppc/Makefile.in
@@ -70,7 +70,6 @@ BISON = bison
MAKEINFO = makeinfo
RANLIB = @RANLIB@
-SIM_CFLAGS = @sim_cflags@
INLINE_CFLAGS = @sim_inline@
ENDIAN_CFLAGS = @sim_endian@
REGPARM_CFLAGS = @sim_regparm@
@@ -116,8 +115,8 @@ CONFIG_CFLAGS = \
$(DEVZERO_CFLAGS)
SIM_FPU_CFLAGS = @sim_fpu_cflags@
-STD_CFLAGS = $(CFLAGS) $(INLINE_CFLAGS) $(CONFIG_CFLAGS) $(WARNING_CFLAGS) $(SIM_CFLAGS) $(HDEFINES) $(TDEFINES) $(INCLUDES) $(INTL_CFLAGS) $(SIM_FPU_CFLAGS)
-NOWARN_CFLAGS = $(CFLAGS) $(INLINE_CFLAGS) $(CONFIG_CFLAGS) $(SIM_CFLAGS) $(HDEFINES) $(TDEFINES) $(INCLUDES) $(SIM_FPU_CFLAGS)
+STD_CFLAGS = $(CFLAGS) $(INLINE_CFLAGS) $(CONFIG_CFLAGS) $(WARNING_CFLAGS) $(HDEFINES) $(TDEFINES) $(INCLUDES) $(INTL_CFLAGS) $(SIM_FPU_CFLAGS)
+NOWARN_CFLAGS = $(CFLAGS) $(INLINE_CFLAGS) $(CONFIG_CFLAGS) $(HDEFINES) $(TDEFINES) $(INCLUDES) $(SIM_FPU_CFLAGS)
BUILD_CFLAGS = $(CFLAGS_FOR_BUILD) $(INCLUDES) $(WARNING_CFLAGS)
BUILD_LDFLAGS =
@@ -550,7 +549,7 @@ PACKAGE_OBJ = @sim_pk_obj@
psim: $(TARGETLIB) main.o $(LIBIBERTY_LIB) $(BFD_LIB) $(LIBINTL_DEP)
- $(CC) $(CFLAGS) $(SIM_CFLAGS) $(LDFLAGS) -o psim$(EXEEXT) main.o $(TARGETLIB) $(BFD_LIB) $(ZLIB) $(LIBINTL) $(LIBIBERTY_LIB) $(LIBS)
+ $(CC) $(CFLAGS) $(LDFLAGS) -o psim$(EXEEXT) main.o $(TARGETLIB) $(BFD_LIB) $(ZLIB) $(LIBINTL) $(LIBIBERTY_LIB) $(LIBS)
run: psim
rm -f run$(EXEEXT)
diff --git a/sim/ppc/configure b/sim/ppc/configure
index 63f1395..d552628 100755
--- a/sim/ppc/configure
+++ b/sim/ppc/configure
@@ -620,7 +620,6 @@ sim_opcode
sim_config
sim_line_nr
sim_warnings
-sim_cflags
RANLIB
AR
HDEFINES
@@ -733,7 +732,6 @@ enable_option_checking
enable_sim_alignment
enable_sim_assert
enable_sim_bitsize
-enable_sim_cflags
enable_sim_config
enable_sim_decode_mechanism
enable_sim_default_model
@@ -1399,7 +1397,6 @@ Optional Features:
--enable-sim-alignment=align Specify strict or nonstrict alignment.
--enable-sim-assert Specify whether to perform random assertions.
--enable-sim-bitsize=n Specify target bitsize (32 or 64).
- --enable-sim-cflags=opts Extra CFLAGS for use in building simulator
--enable-sim-config=file Override default config file
--enable-sim-decode-mechanism=which Specify the instruction decode mechanism.
--enable-sim-default-model=which Specify default PowerPC to model.
@@ -5231,21 +5228,6 @@ else
fi
-# Check whether --enable-sim-cflags was given.
-if test "${enable_sim_cflags+set}" = set; then :
- enableval=$enable_sim_cflags; case "${enableval}" in
- yes) sim_cflags="-O2 -fomit-frame-pointer";;
- no) sim_cflags="";;
- *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
-esac
-if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
- echo "Setting sim cflags = $sim_cflags" 6>&1
-fi
-else
- sim_cflags=""
-fi
-
-
# Check whether --enable-sim-config was given.
if test "${enable_sim_config+set}" = set; then :
enableval=$enable_sim_config; case "${enableval}" in
@@ -7920,7 +7902,6 @@ fi
-
ac_config_files="$ac_config_files Makefile"
ac_config_commands="$ac_config_commands default"
diff --git a/sim/ppc/configure.ac b/sim/ppc/configure.ac
index dff48d2..0b6f849 100644
--- a/sim/ppc/configure.ac
+++ b/sim/ppc/configure.ac
@@ -56,18 +56,6 @@ if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
fi],[sim_bitsize=""])dnl
-AC_ARG_ENABLE(sim-cflags,
-[ --enable-sim-cflags=opts Extra CFLAGS for use in building simulator],
-[case "${enableval}" in
- yes) sim_cflags="-O2 -fomit-frame-pointer";;
- no) sim_cflags="";;
- *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
-esac
-if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
- echo "Setting sim cflags = $sim_cflags" 6>&1
-fi],[sim_cflags=""])dnl
-
-
AC_ARG_ENABLE(sim-config,
[ --enable-sim-config=file Override default config file],
[case "${enableval}" in
@@ -874,7 +862,6 @@ AC_SUBST(HDEFINES)
AR=${AR-ar}
AC_SUBST(AR)
AC_PROG_RANLIB
-AC_SUBST(sim_cflags)
AC_SUBST(sim_warnings)
AC_SUBST(sim_line_nr)
AC_SUBST(sim_config)