-
Enhancement
-
Resolution: Unresolved
-
P3
-
12
Hotspot's vm_version.cpp currently does:
211 #ifndef HOTSPOT_BUILD_COMPILER
212 #ifdef _MSC_VER
213 #if _MSC_VER == 1600
214 #define HOTSPOT_BUILD_COMPILER "MS VC++ 10.0 (VS2010)"
215 #elif _MSC_VER == 1700
216 #define HOTSPOT_BUILD_COMPILER "MS VC++ 11.0 (VS2012)"
...
and similarly for the other compilers.
Configure already extracts the compiler version information e.g.
* Toolchain: microsoft (Microsoft Visual Studio 2017 15.5.5 (devkit))
so we should use this information to set HOTSPOT_BUILD_COMPILER so that the mapping tables in the source code can be removed and do not need to be updated for each new compiler update.
211 #ifndef HOTSPOT_BUILD_COMPILER
212 #ifdef _MSC_VER
213 #if _MSC_VER == 1600
214 #define HOTSPOT_BUILD_COMPILER "MS VC++ 10.0 (VS2010)"
215 #elif _MSC_VER == 1700
216 #define HOTSPOT_BUILD_COMPILER "MS VC++ 11.0 (VS2012)"
...
and similarly for the other compilers.
Configure already extracts the compiler version information e.g.
* Toolchain: microsoft (Microsoft Visual Studio 2017 15.5.5 (devkit))
so we should use this information to set HOTSPOT_BUILD_COMPILER so that the mapping tables in the source code can be removed and do not need to be updated for each new compiler update.