scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit b123d04547d34405c6b32a1347b77a6539d5f60b
parent 1314a5e8a5a9566aef17c9094296a4cf7f2a6859
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Thu, 24 Aug 2017 15:01:19 +0100

[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.

Diffstat:
driver/posix/scc.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/driver/posix/scc.c b/driver/posix/scc.c @@ -332,7 +332,7 @@ validatetools(void) 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); }