RFR: 8275128: Build hsdis using normal build system

Magnus Ihse Bursie ihse at openjdk.java.net
Tue Oct 12 11:33:12 UTC 2021


There are multiple bugs related to hsdis, calling both for added simplicity in building, and allowing for multiple backends.

The very first step is getting rid of the stand-alone Makefile and integrate the build using standard build-infra tooling. 

This patch does this, and it also contains OOTB building on Windows (as requested in JDK-8208495, and furthermore it lays the foundation for adding more backends to hsdis.

-------------

Commit messages:
 - Fix merge error
 - Update README
 - Add dllcrt2.o to LIBS. Now it works on Windows.
 - Fix -shared for mingw gcc, and workaround problem by modifying  OPENJDK_TARGET_OS
 - Enable macos-aarch64 and better safety check when building
 - Remove hsdis-demo.c
 - Make a "fake" mingw-gcc toolchain on Windows
 - Now binutils configure passes on Windows
 - Fix sysroot for windows
 - Fix mingw compiler detection on windows
 - ... and 5 more: https://git.openjdk.java.net/jdk/compare/722d639f...48e11dd8

Changes: https://git.openjdk.java.net/jdk/pull/5908/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=5908&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8275128
  Stats: 665 lines in 8 files changed: 299 ins; 344 del; 22 mod
  Patch: https://git.openjdk.java.net/jdk/pull/5908.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/5908/head:pull/5908

PR: https://git.openjdk.java.net/jdk/pull/5908


More information about the hotspot-compiler-dev mailing list