scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit 409ed8441b493b72772bd2bff68c9430580d9a6f
parent 7c38f9fe2b8ff35a22618a10e4c2b987af930445
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Sun, 31 Oct 2021 04:58:45 +0100

cc2: Prepend error lines with cc2

Error lines were printed without any prefix, making very
confusing reading debug output of cc, where lines of
different programs are printed.

Diffstat:
Msrc/cmd/cc/cc2/main.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/cmd/cc/cc2/main.c b/src/cmd/cc/cc2/main.c @@ -16,6 +16,7 @@ error(unsigned nerror, ...) { va_list va; va_start(va, nerror); + fputs("cc2:", stderr); vfprintf(stderr, errlist[nerror], va); va_end(va); putc('\n', stderr);