Improve compile debugging
authorDavid Schleef <ds@schleef.org>
Tue, 6 Jul 2010 19:29:23 +0000 (12:29 -0700)
committerDavid Schleef <ds@schleef.org>
Fri, 9 Jul 2010 23:57:17 +0000 (16:57 -0700)
orc/orccompiler.c

index ca8ed3d..1749b29 100644 (file)
@@ -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) {