#include "ralloc.h"
#define D(x) x
-#define DEADMOVEERROR "SDCC internal error: deadmove in " __FILE__" line %d\n", __LINE__
+#define DEADMOVEERROR() do {werror(E_INTERNAL_ERROR, __FILE__, __LINE__, "error in deadmove");} while(0)
typedef enum
{
/* sanity check */
if (p == pl->line)
{
- D(fprintf (stderr, DEADMOVEERROR);)
+ DEADMOVEERROR();
return NULL;
}
/* sanity check */
if (rIdx >= mcs51_nRegs)
{
- D(fprintf (stderr, DEADMOVEERROR);)
+ DEADMOVEERROR();
return S4O_ABORT;
}
/* register passing this label */
if (!setLabelRefPassedLabel (label))
{
- D(fprintf (stderr, DEADMOVEERROR);)
+ DEADMOVEERROR();
return S4O_ABORT;
}
continue;
case S4O_VISITED:
if (!pushPl)
{
- D(fprintf (stderr, DEADMOVEERROR);)
+ DEADMOVEERROR();
return FALSE;
}
*pl = pushPl;