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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 12
    • 11, 12
    • hotspot
    • b16
    • generic
    • 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

            mbaesken Matthias Baesken
            mbaesken Matthias Baesken
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: