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

Build failure after JDK-8310577 with GCC8

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved: