|| (GET_CODE (insn) == SET
&& SET_DEST (insn) == pc_rtx)))
{
- warning (0, "ICE: emit_insn used where emit_jump_insn needed:\n");
+ warning (0, "ICE: %<emit_insn%> used where %<emit_jump_insn%> needed:");
debug_rtx (insn);
}
#endif
}
\f
#if defined ENABLE_RTL_CHECKING && (GCC_VERSION >= 2007)
+
+/* Disable warnings about missing quoting in GCC diagnostics for
+ the internal_error calls. Their format strings deliberately don't
+ follow GCC diagnostic conventions. */
+#if __GNUC__ >= 10
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wformat-diag"
+#endif
+
void
rtl_check_failed_bounds (const_rtx r, int n, const char *file, int line,
const char *func)
func, trim_filename (file), line);
}
+#if __GNUC__ >= 10
+#pragma GCC diagnostic pop
+#endif
+
/* Report that line LINE of FILE tried to access the block symbol fields
of a non-block symbol. FUNC is the function that contains the line. */