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

Fix AIX build after the Extend CompileCommand=option change 8055286

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b31

      Backports

        Description

        The change "8055286: Extend CompileCommand=option to handle numeric parameters" broke the AIX build because the AIX xlC compiler is overly picky with regard to section 14.6.4.2 "Candidate functions" of the C++ standard (see http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2011/n3242.pdf) which states:

        If the function name is an unqualified-id and the call would be ill-formed or would find a better match had the lookup within the associated namespaces considered all the function declarations with external linkage introduced in those namespaces in all translation units, not just considering those declarations found in the template definition and template instantiation contexts, then the program has undefined behavior.

        xlC interprets this by not taking into account static functions which have internal linkage and terminates with the error message:

        "hotspot-comp/src/share/vm/compiler/compilerOracle.cpp", line 364.10: 1540-0274 (S) The name lookup for "get_option_value" did not find a declaration.
        "hotspot-comp/src/share/vm/compiler/compilerOracle.cpp", line 364.10: 1540-1292 (I) Static declarations are not considered for a function call if the function is not qualified.

        The fix is trivial - just qualify the call to "get_option_value" like this:

          return ::get_option_value(method, option, value);




          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  simonis Volker Simonis
                  Reporter:
                  simonis Volker Simonis
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: