A random grab bag of minor fixes to enable -Werror for this port.
Disable h8_set_macS for now as it's unused.
Initialize trace & intMask before using them.
Mark local set_h8300h function static.
+2021-05-08 Mike Frysinger <vapier@gentoo.org>
+
+ * compile.c (h8_set_macS): Disable with #if 0.
+ (step_once): Set trace & intMask to 0.
+ (set_h8300h): Mark static.
+ * configure.ac: Delete SIM_AC_OPTION_WARNINGS call.
+ * configure: Regenerate.
+
2021-05-04 Mike Frysinger <vapier@gentoo.org>
* configure: Regenerate.
return (STATE_CPU (sd, 0)) -> macS;
}
+#if 0
static void
h8_set_macS (SIM_DESC sd, int val)
{
(STATE_CPU (sd, 0)) -> macS = (val != 0);
}
+#endif
/* MAC Zero Flag */
static int
int bit;
int pc;
int c, nz, v, n, u, h, ui, intMaskBit;
- int trace, intMask;
+ int trace = 0;
+ int intMask = 0;
int oldmask;
host_callback *sim_callback = STATE_CALLBACK (sd);
/* Indicate whether the cpu is an H8/300 or H8/300H.
FLAG is non-zero for the H8/300H. */
-void
+static void
set_h8300h (unsigned long machine)
{
/* FIXME: Much of the code in sim_load can be moved to sim_open.
fi
+
+
+
+
+
# Check whether --enable-werror was given.
if test "${enable_werror+set}" = set; then :
enableval=$enable_werror; case "${enableval}" in
fi
WERROR_CFLAGS=""
+ if test "${ERROR_ON_WARNING}" = yes ; then
+ WERROR_CFLAGS="-Werror"
+ fi
build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
-Wpointer-sign \
fi
-
-
-
-
-
hardware="cfi core pal glue "
sim_hw_cflags="-DWITH_HW=1"
sim_hw="$hardware"
SIM_AC_OPTION_ENDIAN(BIG)
SIM_AC_OPTION_ALIGNMENT(NONSTRICT_ALIGNMENT)
-SIM_AC_OPTION_WARNINGS(no)
AC_CHECK_HEADERS_ONCE(sys/param.h)