[flang] Version information in flang/f18
authorCamille Coti <camille.coti@gmail.com>
Tue, 25 Aug 2020 08:27:20 +0000 (09:27 +0100)
committerRichard Barton <richard.barton@arm.com>
Tue, 1 Sep 2020 18:05:43 +0000 (19:05 +0100)
commitb11c52781635bd871abd6d932cfd5dcd6f311903
tree69a053e56bf8e46848407d238aa03bfc620a2f16
parent11ddb84b69e928aa396b28ce6b5baf8bbbdd6c43
[flang] Version information in flang/f18

Fixed some version information in flang/f18:

  - fixed the behavior of the -v switch: this flag enables verbosity with used with arguments, but just displays the version when used alone (related to this bug: https://bugs.llvm.org/show_bug.cgi?id=46017)
 - added __FLANG, __FLANG_MAJOR__, __FLANG_MINOR__ and __FLANG_PATCHLEVEL__ (similar to their __F18* counterparts) for compatibility purpose

Reviewed By: AlexisPerry, richard.barton.arm, tskeith

Differential Revision: https://reviews.llvm.org/D84334
flang/test/Driver/version_test.f90
flang/test/Preprocessing/compiler_defined_macros.F90 [new file with mode: 0644]
flang/tools/f18/CMakeLists.txt
flang/tools/f18/f18.cpp
flang/tools/f18/f18_version.h.in [new file with mode: 0644]