aboutsummaryrefslogtreecommitdiff
path: root/opcodes
diff options
context:
space:
mode:
Diffstat (limited to 'opcodes')
-rw-r--r--opcodes/cgen-opc.c3
-rwxr-xr-xopcodes/configure2
2 files changed, 3 insertions, 2 deletions
diff --git a/opcodes/cgen-opc.c b/opcodes/cgen-opc.c
index d637c7c..543ce32 100644
--- a/opcodes/cgen-opc.c
+++ b/opcodes/cgen-opc.c
@@ -460,9 +460,10 @@ cgen_lookup_insn (CGEN_CPU_DESC cd,
if (cd->int_insn_p)
{
info = NULL;
- buf = (unsigned char *) alloca (cd->max_insn_bitsize / 8);
+ buf = (unsigned char *) xmalloc (cd->max_insn_bitsize / 8);
cgen_put_insn_value (cd, buf, length, insn_int_value);
base_insn = insn_int_value;
+ free (buf);
}
else
{
diff --git a/opcodes/configure b/opcodes/configure
index 75c6573..a130b84 100755
--- a/opcodes/configure
+++ b/opcodes/configure
@@ -11545,7 +11545,7 @@ fi
NO_WERROR=
if test "${ERROR_ON_WARNING}" = yes ; then
- GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
+ GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror -Wstack-usage=262144"
NO_WERROR="-Wno-error"
fi