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

ARM: cleanup maybe-uninitialized and reorder compiler warnings

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b07
    • CPU:
      aarch32

      Backports

        Description

        compiling with warnings as errors on ARM 32 yields:

        In file included from /home/bellsoft/jdk/src/hotspot/cpu/arm/assembler_arm.hpp:400:0,
                         from /home/bellsoft/jdk/src/hotspot/share/asm/assembler.hpp:454,
                         from /home/bellsoft/jdk/src/hotspot/share/precompiled/precompiled.hpp:31:
        /home/bellsoft/jdk/src/hotspot/cpu/arm/assembler_arm_32.hpp: In function ‘void Assembler::vdupI(FloatRegister, Register, Assembler::VElem_Size, int, AsmCondition)’:
        /home/bellsoft/jdk/src/hotspot/cpu/arm/assembler_arm_32.hpp:1099:9: warning: ‘b’ may be used uninitialized in this function [-Wmaybe-uninitialized]
             int b;
                 ^
        /home/bellsoft/jdk/src/hotspot/cpu/arm/assembler_arm_32.hpp:1100:9: warning: ‘e’ may be used uninitialized in this function [-Wmaybe-uninitialized]
             int e;
                 ^
        /home/bellsoft/jdk/src/hotspot/cpu/arm/assembler_arm_32.hpp: In member function ‘void Assembler::vmovI(FloatRegister, int, Assembler::VElem_Size, int)’:
        /home/bellsoft/jdk/src/hotspot/cpu/arm/assembler_arm_32.hpp:1070:9: warning: ‘cmode’ may be used uninitialized in this function [-Wmaybe-uninitialized]
             int cmode;
                 ^~~~~
        /home/bellsoft/jdk/src/hotspot/cpu/arm/assembler_arm_32.hpp: In member function ‘void Assembler::vdupI(FloatRegister, Register, Assembler::VElem_Size, int, AsmCondition)’:
        /home/bellsoft/jdk/src/hotspot/cpu/arm/assembler_arm_32.hpp:1099:9: warning: ‘b’ may be used uninitialized in this function [-Wmaybe-uninitialized]
             int b;
                 ^
        /home/bellsoft/jdk/src/hotspot/cpu/arm/assembler_arm_32.hpp:1100:9: warning: ‘e’ may be used uninitialized in this function [-Wmaybe-uninitialized]
             int e;
                 ^
        In file included from /home/bellsoft/jdk/src/hotspot/cpu/arm/c1_CodeStubs_arm.cpp:27:0:
        /home/bellsoft/jdk/src/hotspot/share/c1/c1_CodeStubs.hpp: In constructor ‘RangeCheckStub::RangeCheckStub(CodeEmitInfo*, LIR_Opr, LIR_Opr)’:
        /home/bellsoft/jdk/src/hotspot/share/c1/c1_CodeStubs.hpp:151:17: warning: ‘RangeCheckStub::_throw_index_out_of_bounds_exception’ will be initialized after [-Wreorder]
           bool _throw_index_out_of_bounds_exception;
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        /home/bellsoft/jdk/src/hotspot/share/c1/c1_CodeStubs.hpp:149:17: warning: ‘LIR_OprDesc* RangeCheckStub::_index’ [-Wreorder]
           LIR_Opr _index;
                         ^~~~~~
        /home/bellsoft/jdk/src/hotspot/cpu/arm/c1_CodeStubs_arm.cpp:54:1: warning: when initialized here [-Wreorder]
         RangeCheckStub::RangeCheckStub(CodeEmitInfo* info, LIR_Opr index, LIR_Opr array)
         ^~~~~~~~~~~~~~
        In file included from /home/bellsoft/jdk/src/hotspot/cpu/arm/c1_CodeStubs_arm.cpp:27:0:
        /home/bellsoft/jdk/src/hotspot/share/c1/c1_CodeStubs.hpp: In constructor ‘RangeCheckStub::RangeCheckStub(CodeEmitInfo*, LIR_Opr)’:
        /home/bellsoft/jdk/src/hotspot/share/c1/c1_CodeStubs.hpp:151:17: warning: ‘RangeCheckStub::_throw_index_out_of_bounds_exception’ will be initialized after [-Wreorder]
           bool _throw_index_out_of_bounds_exception;
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        /home/bellsoft/jdk/src/hotspot/share/c1/c1_CodeStubs.hpp:149:17: warning: ‘LIR_OprDesc* RangeCheckStub::_index’ [-Wreorder]
           LIR_Opr _index;
                         ^~~~~~
        /home/bellsoft/jdk/src/hotspot/cpu/arm/c1_CodeStubs_arm.cpp:60:1: warning: when initialized here [-Wreorder]
         RangeCheckStub::RangeCheckStub(CodeEmitInfo* info, LIR_Opr index)
         ^~~~~~~~~~~~~~

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                avoitylov Aleksei Voitylov
                Reporter:
                avoitylov Aleksei Voitylov
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: