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

hotspot/share/opto/parse2.cpp compile error with gcc 7.3.1

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 12
    • Fix Version/s: 12
    • Component/s: hotspot
    • Subcomponent:
    • Resolved In Build:
      b16
    • CPU:
      generic
    • OS:
      generic

      Description

      When building jdk/jdk with gcc 7.3.1 (with warnings as errors disabled) we run into this issue :

      /open_jdk/jdk_just_clone/jdk/src/hotspot/share/opto/parse2.cpp:1349:14: note: ‘sprintf’ output 2 or more bytes (assuming 2147488583) into a destination of size 30
             sprintf(prob_str_buf, "%g", prob);
             ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
      cc1plus: all warnings being treated as errors

        Attachments

          Activity

            People

            • Assignee:
              mbaesken Matthias Baesken
              Reporter:
              mbaesken Matthias Baesken
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: