sendaoYan / riscv-port-jdk8u-ysd

https://openjdk.org/projects/riscv-port
GNU General Public License v2.0
0 stars 0 forks source link

[riscv64-8u]riscv.ad:1450:11: error: ‘CompactStrings’ was not declared in this scope #34

Open sendaoYan opened 1 week ago

sendaoYan commented 1 week ago
+ cd build/linux-riscv64-normal-server-release/hotspot/linux_riscv_compiler2/generated
+ /usr/bin/g++ -DLINUX -D_GNU_SOURCE -DRISCV64 -DPRODUCT -I. -I/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/prims -I/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm -I/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/precompiled -I/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/cpu/riscv/vm -I/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/os_cpu/linux_riscv/vm -I/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/os/linux/vm -I/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/os/posix/vm -I../generated '-DHOTSPOT_RELEASE_VERSION="25.412-b00"' '-DHOTSPOT_BUILD_TARGET="product"' '-DHOTSPOT_BUILD_USER="yansendao"' '-DHOTSPOT_LIB_ARCH="riscv64"' '-DHOTSPOT_VM_DISTRO="OpenJDK"' -DTARGET_OS_FAMILY_linux -DTARGET_ARCH_riscv -DTARGET_ARCH_MODEL_riscv -DTARGET_OS_ARCH_linux_riscv -DTARGET_OS_ARCH_MODEL_linux_riscv64 -DTARGET_COMPILER_gcc -DINCLUDE_JFR=1 -DCOMPILER2 -DCOMPILER1 -fPIC -fno-rtti -fno-exceptions -D_REENTRANT -fcheck-new -fvisibility=hidden -pipe -fno-strict-aliasing -fno-omit-frame-pointer -O3 -g -DVM_LITTLE_ENDIAN -D_LP64=1 -Werror -Wpointer-arith -Wsign-compare -Wundef -Wunused-function -Wunused-value -Wformat=2 -Wreturn-type -fstack-protector -fno-delete-null-pointer-checks -fno-lifetime-dse -std=gnu++98 -DDTRACE_ENABLED -c -MMD -MP -MF ../generated/dependencies/ad_riscv.o.d -fpch-deps -o ad_riscv-tmp.o ../generated/adfiles/ad_riscv.cpp
/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/cpu/riscv/vm/riscv.ad: In static member function ‘static const bool Matcher::match_rule_supported(int)’:
/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/cpu/riscv/vm/riscv.ad:1450:11: error: ‘CompactStrings’ was not declared in this scope; did you mean ‘pd_CompactStrings’?
 1450 |       if (CompactStrings)  return false;
      |           ^~~~~~~~~~~~~~
      |           pd_CompactStrings
/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/cpu/riscv/vm/riscv.ad: In member function ‘virtual void ShouldNotReachHereNode::emit(CodeBuffer&, PhaseRegAlloc*) const’:
/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/cpu/riscv/vm/riscv.ad:9063:9: error: ‘is_reachable’ was not declared in this scope; did you mean ‘is_unreachable’?
 9063 |     if (is_reachable()) {
      |         ^~~~~~~~~~~~
      |         is_unreachable
In file included from /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/memory/specialized_oop_closures.hpp:28,
                 from /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/oops/oop.hpp:30,
                 from /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/memory/genOopClosures.hpp:29,
                 from /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/oops/klass.hpp:28,
                 from /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/runtime/handles.hpp:28,
                 from /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/memory/universe.hpp:28,
                 from /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/code/oopRecorder.hpp:28,
                 from /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/asm/codeBuffer.hpp:28,
                 from /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/asm/assembler.hpp:28,
                 from /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/precompiled/precompiled.hpp:29,
                 from ../generated/adfiles/ad_riscv.cpp:29:
/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/runtime/atomic.hpp: At global scope:
/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/runtime/atomic.hpp:88:26: error: inline function ‘static jint Atomic::cmpxchg(jint, volatile jint*, jint)’ used but never defined [-Werror]
   88 |   inline static jint     cmpxchg    (jint     exchange_value, volatile jint*     dest, jint     compare_value);
      |                          ^~~~~~~
/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/runtime/atomic.hpp:72:22: error: inline function ‘static void Atomic::dec(volatile jint*)’ used but never defined [-Werror]
   72 |   inline static void dec    (volatile jint*     dest);
      |                      ^~~
In file included from /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/runtime/thread.inline.hpp:30,
                 from /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/memory/resourceArea.hpp:29,
                 from /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/classfile/classFileParser.hpp:29,
                 from /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/classfile/classLoader.hpp:28,
                 from /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/classfile/systemDictionary.hpp:29,
                 from /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/ci/ciEnv.hpp:30,
                 from /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/ci/ciUtilities.hpp:28,
                 from /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/ci/ciNullObject.hpp:30,
                 from /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/ci/ciConstant.hpp:29,
                 from /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/ci/ciArray.hpp:29,
                 from /home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/precompiled/precompiled.hpp:33:
/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/runtime/thread.hpp:1064:15: error: inline function ‘void JavaThread::set_thread_state(JavaThreadState)’ used but never defined [-Werror]
 1064 |   inline void set_thread_state(JavaThreadState s);
      |               ^~~~~~~~~~~~~~~~
/home/yansendao/git/riscv-port-jdk8u-ysd/hotspot/src/share/vm/runtime/thread.hpp:1063:26: error: inline function ‘JavaThreadState JavaThread::thread_state() const’ used but never defined [-Werror]
 1063 |   inline JavaThreadState thread_state() const;
      |                          ^~~~~~~~~~~~
cc1plus: all warnings being treated as errors

ad_riscv.log make-fastdebug-aarch64.log make-fastdebug-x86_64.log make-release-aarch64.log make-release-x86_64.log make-riscv64.log make-slowdebug-aarch64.log make-slowdebug-x86_64.log

sendaoYan commented 1 week ago
diff --git a/hotspot/src/cpu/riscv/vm/riscv.ad b/hotspot/src/cpu/riscv/vm/riscv.ad
index 6561c6d40bd..6cc661edcec 100644
--- a/hotspot/src/cpu/riscv/vm/riscv.ad
+++ b/hotspot/src/cpu/riscv/vm/riscv.ad
@@ -1446,9 +1446,6 @@ const bool Matcher::match_rule_supported(int opcode) {
   }

   switch (opcode) {
-    case Op_StrComp:
-      if (CompactStrings)  return false;
-      break;
     case Op_PopCountI:
     case Op_PopCountL:
       return UsePopCountInstruction;
sendaoYan commented 1 week ago

To github.com:sendaoYan/riscv-port-jdk8u-ysd.git 2b548c27e1d..7bc72cd3e44 minus-jbs8276799 -> minus-jbs8276799 ad_riscv.log make-riscv64.log