continue compile after cpp failure; bug report 4.3BSD/bin/78
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Thu, 17 Sep 1987 06:50:52 +0000 (22:50 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Thu, 17 Sep 1987 06:50:52 +0000 (22:50 -0800)
SCCS-vsn: old/pcc/cc/cc.c 4.14

usr/src/old/pcc/cc/cc.c

index 4142d88..e3e7bc5 100644 (file)
@@ -1,4 +1,4 @@
-static char sccsid[] = "@(#)cc.c 4.13 %G%";
+static char sccsid[] = "@(#)cc.c 4.14 %G%";
 /*
  * cc - front end for C compiler
  */
 /*
  * cc - front end for C compiler
  */
@@ -214,8 +214,10 @@ main(argc, argv)
                if (callsys(cpp, av)) {
                        exfail++;
                        eflag++;
                if (callsys(cpp, av)) {
                        exfail++;
                        eflag++;
+                       cflag++;
+                       continue;
                }
                }
-               if (pflag || exfail) {
+               if (pflag) {
                        cflag++;
                        continue;
                }
                        cflag++;
                        continue;
                }