From b963cea86f6402a81167b649f07f5ac284092bd4 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Tue, 6 Jul 2010 12:29:23 -0700 Subject: [PATCH] Improve compile debugging --- orc/orccompiler.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/orc/orccompiler.c b/orc/orccompiler.c index ca8ed3d..1749b29 100644 --- a/orc/orccompiler.c +++ b/orc/orccompiler.c @@ -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) { -- 2.7.4