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

Build failure with GCC7 after JDK-8294314 due to strict-overflow warnings

    XMLWordPrintable

Details

    • b20

    Description

      * For target hotspot_variant-server_libjvm_objs_bytecodeAssembler.o:
      In file included from /home/jvm/jdk/src/hotspot/share/utilities/globalDefinitions.hpp:29:0,
                       from /home/jvm/jdk/src/hotspot/share/memory/allocation.hpp:29,
                       from /home/jvm/jdk/src/hotspot/share/classfile/bytecodeAssembler.hpp:28,
                       from /home/jvm/jdk/src/hotspot/share/classfile/bytecodeAssembler.cpp:27:
      /home/jvm/jdk/src/hotspot/share/utilities/growableArray.hpp: In member function 'void BytecodeAssembler::append(u2)':
      /home/jvm/jdk/src/hotspot/share/utilities/debug.hpp:59:7: error: assuming signed overflow does not occur when assuming that (X - c) > X is always false [-Werror=strict-overflow]
         if (!(p)) { \
             ^~~~
      /home/jvm/jdk/src/hotspot/share/utilities/debug.hpp:68:24: note: in expansion of macro 'vmassert'
       #define assert(p, ...) vmassert(p, __VA_ARGS__)
                              ^~~~~~~~
      /home/jvm/jdk/src/hotspot/share/utilities/growableArray.hpp:155:5: note: in expansion of macro 'assert'
           assert(0 <= i && i < _len, "illegal index");

      Attachments

        Issue Links

          Activity

            People

              jiefu Jie Fu
              jiefu Jie Fu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: