RFR: 8292226: Prepare make for better Link Time Optimization support [v4]

Julian Waters jwaters at openjdk.org
Fri Aug 12 16:40:32 UTC 2022


> The support for Link Time Optimization in the JDK's make system could do with some cleaning up, at the moment it simply assumes the compiler is gcc and sets the flags as such. Instead of introducing changes in bulk, as a first step, it would be good to simply supply the appropriate flags depending on the compiler and refine the flags for the one existing compiler with support for it. In practice the latter just means adding the proper -fuse-linker-plugin to gcc compile step when link-time-opt is specified, as without it the compiler generates both native code and information rich representation for Link Time Optimization. With this flag, native code generation is disabled and object files will contain only code required for Link Time Optimization, thus speeding up compile times as well.

Julian Waters has updated the pull request incrementally with one additional commit since the last revision:

  Set optimization via JVM_OPTIMIZATION

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/9829/files
  - new: https://git.openjdk.org/jdk/pull/9829/files/9b6195a0..4921c220

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=9829&range=03
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=9829&range=02-03

  Stats: 8 lines in 1 file changed: 0 ins; 5 del; 3 mod
  Patch: https://git.openjdk.org/jdk/pull/9829.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/9829/head:pull/9829

PR: https://git.openjdk.org/jdk/pull/9829



More information about the build-dev mailing list