On 04/01/2024 14:40, Philippe Mathieu-Daudé wrote:
On 4/1/24 14:23, Samuel Tardieu wrote:
Philippe Mathieu-Daudé <phi...@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!