On 04/01/2024 14:40, Philippe
Mathieu-Daudé wrote:
On
4/1/24 14:23, Samuel Tardieu wrote:
Philippe Mathieu-Daudé <philmd@linaro.org> writes:
This doesn't build:
../../hw/misc/stm32l4x5_exti.c:172:9: error: expected
_expression_
const uint32_t set1 = value & ~DIRECT_LINE_MASK1;
[…]
I could build using:
- case EXTI_SWIER1:
+ case EXTI_SWIER1: {
Out or curiosity, which C compiler or option do you use for
checking? I have no problem building this using "./configure
--target-list=arm-softmmu" with GCC 12.3.0.
C compiler for the host machine: clang (clang 15.0.0 "Apple clang
version 15.0.0 (clang-1500.0.40.1)")
C linker for the host machine: clang ld64 1015.7
Indeed, it looks like mixing labels, declarations and statements is
a GCC extension. I've switched to clang and can reproduce the
failure. Thanks!
|