1 From a gcc build attempt on sparc.
3 extern static is an error.
5 AV_HW1_IDX and AV_HW2_IDX are part of getisax() and are defined on
6 Solaris 11.4 but not present on illumos (or 11.2).
8 --- a/src/hotspot/os_cpu/solaris_sparc/vm_version_solaris_sparc.cpp Thu Mar 30 12:53:34 2023
9 +++ b/src/hotspot/os_cpu/solaris_sparc/vm_version_solaris_sparc.cpp Thu Mar 30 12:53:40 2023
14 -extern "C" static int PICL_visit_cpu_helper(picl_nodehdl_t nodeh, void *result);
15 +extern "C" int PICL_visit_cpu_helper(picl_nodehdl_t nodeh, void *result);
17 // Functions from the library we need (signatures should match those in picl.h)
23 -extern "C" static int PICL_visit_cpu_helper(picl_nodehdl_t nodeh, void *result) {
24 +extern "C" int PICL_visit_cpu_helper(picl_nodehdl_t nodeh, void *result) {
25 return PICL::visit_cpu(nodeh, result);
29 #define _SC_L2CACHE_LINESZ 527 /* Size of L2 cache line */
40 void VM_Version::platform_features() {
41 uint64_t features = ISA_v9_msk; // Basic SPARC-V9 required (V8 not supported).