Driver: bifurcate extended and basic MSC versioning
authorSaleem Abdulrasool <compnerd@compnerd.org>
Wed, 16 Jul 2014 03:13:50 +0000 (03:13 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Wed, 16 Jul 2014 03:13:50 +0000 (03:13 +0000)
commitc68237bc2c7283f9cc62593b3dd8e30562014400
tree20f303469c2c765847b9ad3262978bc9d4c4d92d
parent56b56ea15bd8687d9a9f1279c91eb0939cee7a56
Driver: bifurcate extended and basic MSC versioning

This restores the original behaviour of -fmsc-version. The older option
remains as a mechanism for specifying the basic version information. A
secondary option, -fms-compatibility-version permits the user to specify an
extended version to the driver.

The new version takes the value as a dot-separated value rather than the
major * 100 + minor format that -fmsc-version format. This makes it easier to
specify the value as well as a more flexible manner for specifying the value.

Specifying both values is considered an error.

The older parameter is left solely as a driver option, which is normalised into
the newer parameter. This allows us to retain a single code path in the
compiler itself whilst preserving the semantics of the old parameter as well as
avoid having to determine which of two formats are being used by the invocation.

The test changes are due to the fact that the compiler no longer supports the
old option, and is a direct conversion to the new option.

llvm-svn: 213119
12 files changed:
clang/include/clang/Basic/LangOptions.def
clang/include/clang/Driver/Options.td
clang/lib/Basic/Targets.cpp
clang/lib/Driver/Tools.cpp
clang/lib/Frontend/CompilerInvocation.cpp
clang/lib/Frontend/TextDiagnostic.cpp
clang/test/Driver/msc-version.c
clang/test/Headers/c11.c
clang/test/Headers/ms-intrin.cpp
clang/test/Headers/ms-null-ms-header-vs-stddef.cpp
clang/test/Misc/diag-format.c
clang/test/Preprocessor/predefined-macros.c