scc

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

commit 041ec28fa0e9a9a2b35a76fd383e6adc20e6bbc3
parent 3e884761033d152fc86c21ab537c00d877b864d4
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Thu,  9 Mar 2017 09:25:43 +0100

[cc1] Fix pragma line emitted by -E

The correct format of a pragma line is

but cc1 was printing the file without quotes.

Diffstat:
Mcc1/cpp.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cc1/cpp.c b/cc1/cpp.c @@ -790,7 +790,7 @@ ppragmaln(void) putchar('\n'); if (strcmp(file, filenam)) { strcpy(file, filenam); - s = "#line %u %s\n"; + s = "#line %u \"%s\"\n"; } else if (nline+1 != lineno) { s = "#line %u\n"; } else {