shithub: scc

Download patch

ref: 0bf03263b1eb578bb353c6bc93f1636caaba89d0
parent: b31a69f53b112c12d875af188abe3699f48f9620
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Thu Aug 20 18:42:03 EDT 2015

Emit error sequence in cc1 errors

We need some way to transmit errors to the backend
and the best way is to transmit this sequence which is
impossible in a correct code.

--- a/cc1/error.c
+++ b/cc1/error.c
@@ -24,6 +24,10 @@
 	putc('\n', stderr);
 
 	if (flag < 0) {
+		if (!failure) {
+			failure = 1;
+			puts("????");
+		}
 		failure = 1;
 		if (nerrors++ == MAXERRNUM) {
 			fputs("too many errors\n", stderr);