The function was missing a prototype, and passing a constant string
as the format string instead of going through a %s format.
+2021-05-08 Mike Frysinger <vapier@gentoo.org>
+
+ * cgen-ops.h (cgen_rtx_error): Declare.
+ * cgen-utils.c (cgen_rtx_error): Add %s printf argument.
+
2021-05-08 Mike Frysinger <vapier@gentoo.org>
* cgen-utils.c (virtual_insn_entries): Change {0} to {}.
#endif
+extern void cgen_rtx_error (SIM_CPU *, const char *);
+
#endif /* CGEN_SEM_OPS_H */
{
SIM_DESC sd = CPU_STATE (cpu);
- sim_io_printf (sd, msg);
+ sim_io_printf (sd, "%s", msg);
sim_io_printf (sd, "\n");
sim_engine_halt (sd, cpu, NULL, CPU_PC_GET (cpu), sim_stopped, SIM_SIGTRAP);