ref: 3b4a60233fe5779548a6f085b4a2496a4537c62c
parent: 0049d447d0d28b28389342299fde625823cd34fa
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Tue Feb 14 09:48:22 EST 2017
[cc1] Return error in addinput() when a file cannot be openend This function is used to try to open the included files, if it die() when a file isn't found then it is impossible to try the next location.
--- a/cc1/lex.c
+++ b/cc1/lex.c
@@ -103,7 +103,7 @@
} else if (fname) {
/* a new file */
if ((fp = fopen(fname, "r")) == NULL)
- die("Error opening '%s': %s", fname, strerror(errno));
+ return 0;
flags = IFILE;
if (curip && onlyheader)
printf("%s: %s\n", infile, fname);