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

linuxs390x build of jdk11 fails with gcc8 because of warnings as errors

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P3 P3
    • tbd
    • 11
    • hotspot
    • s390x
    • linux

      When building jdk11 with gcc8 on linuxs390x, we run into a couple of warnings of the maybe-uninitialized class. For example

      /nightly/jdk11u-dev/src/hotspot/cpu/s390/macroAssembler_s390.cpp:1962:26: error: 'inst' may be used uninitialized in this function [-Werror=maybe-uninitialized]
         return get_pcrel_offset(inst);
                ~~~~~~~~~~~~~~~~^~~~~~
      /nightly/jdk11u-dev/src/hotspot/cpu/s390/macroAssembler_s390.cpp:1941:17: note: 'inst' was declared here
         unsigned long inst;
                       ^~~~

      Those warnings are switched off in jdk/jdk but not in jdk11. The issues seem to show up only on s390x .

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

              Created:
              Updated:
              Resolved: