static char * get_barrier (const char *s);
int verbose = 0;
+int error = 0;
enum {
MODE_IMPL,
fclose (output);
+ if (error) exit(1);
+
return 0;
}
ORC_TARGET_C_BARE);
if (ORC_COMPILE_RESULT_IS_SUCCESSFUL(result)) {
fprintf(output, "%s\n", orc_program_get_asm_code (p));
+ } else {
+ printf("Failed to compile %s\n", p->name);
+ error = TRUE;
}
}
fprintf(output, "}\n");
ORC_TARGET_C_BARE | ORC_TARGET_C_NOEXEC);
if (ORC_COMPILE_RESULT_IS_SUCCESSFUL(result)) {
fprintf(output, "%s\n", orc_program_get_asm_code (p));
+ } else {
+ printf("Failed to compile %s\n", p->name);
+ error = TRUE;
}
}
fprintf(output, "}\n");
if (ORC_COMPILE_RESULT_IS_SUCCESSFUL(result)) {
fprintf(output, "%s\n", orc_program_get_asm_code (p));
} else {
- fprintf(output, "/* failed to compile */\n");
+ printf("Failed to compile %s\n", p->name);
+ error = TRUE;
}
}
fprintf(output, "\n");