Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8292226

Prepare make for better Link Time Optimization support

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 20
    • None
    • infrastructure
    • None
    • b12

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              jwaters Julian Waters
              jwaters Julian Waters
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: