[flang] Version information in flang/f18
authorCamille Coti <camille.coti@gmail.com>
Mon, 10 Aug 2020 15:16:35 +0000 (16:16 +0100)
committerRichard Barton <richard.barton@arm.com>
Mon, 10 Aug 2020 15:18:24 +0000 (16:18 +0100)
commit89a9db438f85c6d4c0f11ecd0448bb71e1deac24
tree366aea86ab3728de9fb56cfb20c8df9666f3e8f6
parentb34ec5969f1ad27f48ebc0d35a3fe37e810a8a32
[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: sscalpone, 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]