8218562: handle HOTSPOT_BUILD_COMPILER for clang/xlclang and cleanup HOTSPOT_BUILD_COMPILER settings
Reviewed-by: dholmes, ihse, mdoerr
--- a/src/hotspot/share/runtime/vm_version.cpp Fri Feb 08 08:49:32 2019 +0100
+++ b/src/hotspot/share/runtime/vm_version.cpp Wed Feb 06 16:02:27 2019 +0100
@@ -230,13 +230,7 @@
#define HOTSPOT_BUILD_COMPILER "unknown MS VC++:" XSTR(_MSC_VER)
#endif
#elif defined(__SUNPRO_CC)
- #if __SUNPRO_CC == 0x420
- #define HOTSPOT_BUILD_COMPILER "Workshop 4.2"
- #elif __SUNPRO_CC == 0x500
- #define HOTSPOT_BUILD_COMPILER "Workshop 5.0 compat=" XSTR(__SUNPRO_CC_COMPAT)
- #elif __SUNPRO_CC == 0x520
- #define HOTSPOT_BUILD_COMPILER "Workshop 5.2 compat=" XSTR(__SUNPRO_CC_COMPAT)
- #elif __SUNPRO_CC == 0x580
+ #if __SUNPRO_CC == 0x580
#define HOTSPOT_BUILD_COMPILER "Workshop 5.8"
#elif __SUNPRO_CC == 0x590
#define HOTSPOT_BUILD_COMPILER "Workshop 5.9"
@@ -249,6 +243,8 @@
#else
#define HOTSPOT_BUILD_COMPILER "unknown Workshop:" XSTR(__SUNPRO_CC)
#endif
+ #elif defined(__clang_version__)
+ #define HOTSPOT_BUILD_COMPILER "clang " __VERSION__
#elif defined(__GNUC__)
#define HOTSPOT_BUILD_COMPILER "gcc " __VERSION__
#elif defined(__IBMCPP__)