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

Build failure after JDK-8310577 with GCC8

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 22
    • 22
    • hotspot
    • b04
    • 22
    • b04
    • generic
    • generic

    Description

      I see
      /net/usr.work/d003504/Workspace/OpenJDK/jdk/jdk/src/hotspot/share/oops/arrayOop.hpp:141:17: error: comparison is always true due to limited range of data type [-Werror=type-limits]
           assert(type >= 0 && type < T_CONFLICT, "wrong type");
                  ~~~~~^~~~

      At least on linux x86_64 and on linux s390x, using gcc8.

      Reason:
      In share/utilities/globalDefinitions.hpp, this modification
      - enum BasicType {
      + enum BasicType : u1 {
      forced BasicType to be unsigned. As a consequence, at least the above comparison is always true.

      Attachments

        Issue Links

          Activity

            People

              jiefu Jie Fu
              lucy Lucy Schmidt
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: