Commit b963cea8 authored by David Schleef's avatar David Schleef

Improve compile debugging

parent 9ea69002
......@@ -105,7 +105,8 @@ orc_compiler_allocate_register (OrcCompiler *compiler, int data_reg)
}
/* FIXME on !x86, this is an error */
ORC_COMPILER_ERROR (compiler, "register overflow");
ORC_COMPILER_ERROR (compiler, "register overflow for %s reg",
data_reg ? "vector" : "gp");
compiler->result = ORC_COMPILE_RESULT_UNKNOWN_COMPILE;
return 0;
......@@ -494,6 +495,8 @@ orc_compiler_global_reg_alloc (OrcCompiler *compiler)
compiler->result = ORC_COMPILE_RESULT_UNKNOWN_PARSE;
break;
}
if (compiler->error) break;
}
if (compiler->alloc_loop_counter && !compiler->error) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment