ref: b5b9eac2d984b1f67cd71c4547a3afd7f2bb6dd4
parent: def218a52a93259da43d7e2aa43e4a56a8cbd908
author: Roberto E. Vargas Caballero <[email protected]>
date: Thu Aug 24 11:01:19 EDT 2017
[driver] Add internal error to any tool not controlled by scc If the assembler, qbe, linker or tee fail this is some internal error too, because it means that they are missed or cc2 is generating some wrong code.
--- a/driver/posix/scc.c
+++ b/driver/posix/scc.c
@@ -332,7 +332,7 @@
if (waitpid(t->pid, &st, 0) < 0 ||
!WIFEXITED(st) ||
WEXITSTATUS(st) != 0) {
- if (!WIFEXITED(st)) {
+ if (!WIFEXITED(st) || tool != CC1 && tool != CC2) {
fprintf(stderr,
"scc:%s: internal error\n", t->bin);
}