-
Bug
-
Resolution: Fixed
-
P1
-
20
-
b21
-
Verified
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.
```
* 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
```
- relates to
-
JDK-8294438 Fix misleading-indentation warnings in hotspot
-
- Resolved
-