Re: [PATCH] target/arm/m_helper: Silence GCC 10 maybe-uninitialized error

2021-01-19 Thread Peter Maydell
On Tue, 19 Jan 2021 at 06:27, Philippe Mathieu-Daudé wrote: > > When building with GCC 10.2 configured with --extra-cflags=-Os, we get: > > target/arm/m_helper.c: In function ‘arm_v7m_cpu_do_interrupt’: > target/arm/m_helper.c:1811:16: error: ‘restore_s16_s31’ may be used > uninitialized in t

[PATCH] target/arm/m_helper: Silence GCC 10 maybe-uninitialized error

2021-01-18 Thread Philippe Mathieu-Daudé
When building with GCC 10.2 configured with --extra-cflags=-Os, we get: target/arm/m_helper.c: In function ‘arm_v7m_cpu_do_interrupt’: target/arm/m_helper.c:1811:16: error: ‘restore_s16_s31’ may be used uninitialized in this function [-Werror=maybe-uninitialized] 1811 | if (res