shithub: scc

Download patch

ref: 3801b0918d1ba3107283cb6087a9a158c33d545b
parent: 39021320ba2df3a66a0f181683019cdee6667de9
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Thu Mar 9 04:25:43 EST 2017

[cc1] Fix pragma line emitted by -E

The correct format of a pragma line is

but cc1 was printing the file without quotes.

--- a/cc1/cpp.c
+++ b/cc1/cpp.c
@@ -790,7 +790,7 @@
 	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 {