Skip to content

Commit

Permalink
Set preprocessor filename to output filename
Browse files Browse the repository at this point in the history
  • Loading branch information
xoviat committed Dec 28, 2017
1 parent c45ea61 commit 6315df5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/flang1/flang1exe/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6315df5

Please sign in to comment.