[flang-commits] [PATCH] D84334: [flang] Version information in flang/f18

Richard Barton via Phabricator via flang-commits flang-commits at lists.llvm.org
Wed Aug 12 08:52:44 PDT 2020


richard.barton.arm added a comment.

@coti - I've had another look and I think your new test is stumbling across an existing bug. If you play around with the existing `__F18*` macros, you can see that they are not being applied correctly in the code:

  ricbar01 at hw-a21-17:~/ossf18/llvm-project/flang$ cat test.f90
  PROGRAM FOO
    integer i = __F18__
  end program foo
  ricbar01 at hw-a21-17:~/ossf18/llvm-project/flang$ ../../build/bin/flang -DFOO=bar test.f90 -E
  program foo
  integer i = __f18__
  end program foo

So I don't think there is anything wrong with the code changes or test, but perhaps another bug to fix in the preprocessor itself. Its the end of the day for me now, but I'll look again tomorrow.

I have not looked at the out of tree build issues. Have you tried isuru's suggestion?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D84334/new/

https://reviews.llvm.org/D84334



More information about the flang-commits mailing list