From 6315df57e8150d07c5a78b766346f96568139bc1 Mon Sep 17 00:00:00 2001 From: xoviat Date: Thu, 28 Dec 2017 11:23:08 -0600 Subject: [PATCH] Set preprocessor filename to output filename --- tools/flang1/flang1exe/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/flang1/flang1exe/main.c b/tools/flang1/flang1exe/main.c index 0f3ab1165bb..de93a9c0afa 100644 --- a/tools/flang1/flang1exe/main.c +++ b/tools/flang1/flang1exe/main.c @@ -1122,9 +1122,9 @@ init(int argc, char *argv[]) if (!ipa_import_mode) { if (fpp_) { if (flg.es) { - if (cppfile == NULL) + if (outfile_name == NULL) gbl.cppfil = stdout; - else if ((gbl.cppfil = fopen(cppfile, "w")) == NULL) + else if ((gbl.cppfil = fopen(outfile_name, "w")) == NULL) errfatal(5); } else { if ((gbl.cppfil = tmpf("a")) == NULL)