Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFA] Patch for cgen_rtx_error()
@ 2000-10-07 18:40 Ben Elliston
  2000-10-07 18:51 ` Frank Ch. Eigler
  0 siblings, 1 reply; 3+ messages in thread
From: Ben Elliston @ 2000-10-07 18:40 UTC (permalink / raw)
  To: gdb-patches; +Cc: bje

The following patch implements the cgen_rtx_error function, which is
invoked by cgen-generated code.  Until now, no one has used the cgen
(error ..) rtx, so this has gone unnoticed.

Okay to commit?

Ben


2000-10-08  Ben Elliston  <bje@redhat.com>

	* cgen-utils.c (cgen_rtx_error): New function.


diff -u -r1.26 cgen-utils.c
--- cgen-utils.c	2000/09/26 17:24:19	1.26
+++ cgen-utils.c	2000/10/08 01:37:31
@@ -423,3 +423,15 @@
 
   return val;
 }
+
+/* Emit an error message from CGEN RTL.  */
+
+void
+cgen_rtx_error (SIM_CPU *cpu, const char * fmt, ...)
+{
+  va_list ap;
+  va_start(ap, fmt);
+  sim_io_printf (CPU_STATE (cpu), fmt, ap);
+  va_end(ap);
+  sim_io_printf (CPU_STATE (cpu), "\n");
+}


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2000-10-08 14:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-10-07 18:40 [RFA] Patch for cgen_rtx_error() Ben Elliston
2000-10-07 18:51 ` Frank Ch. Eigler
     [not found]   ` <Pine.LNX.4.21.0010090828120.26484-100000@moshpit.cygnus.com>
2000-10-08 14:52     ` Frank Ch. Eigler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox