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

Linux AArch64 builds broken after JDK-8294438

    XMLWordPrintable

Details

    • b21
    • Verified

    Description

      This seems to only manifest with GCC 11+:

      ```
      * For target hotspot_variant-server_libjvm_objs_assembler_aarch64.o:
      /home/shade/trunks/jdk/src/hotspot/cpu/aarch64/assembler_aarch64.cpp: In member function 'void Address::lea(MacroAssembler*, Register) const':
      /home/shade/trunks/jdk/src/hotspot/cpu/aarch64/assembler_aarch64.cpp:138:5: error: this 'else' clause does not guard... [-Werror=misleading-indentation]
        138 | else
            | ^~~~
      /home/shade/trunks/jdk/src/hotspot/cpu/aarch64/assembler_aarch64.cpp:140:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
        140 | break;
            | ^~~~~
      cc1plus: all warnings being treated as errors
      ```

      JDK-8294438 missed this spot, because it was tested with GCC 10.

      Attachments

        Issue Links

          Activity

            People

              shade Aleksey Shipilev
              shade Aleksey Shipilev
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: