From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from draig.lan ([185.126.160.109]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-390e484452asm18015310f8f.61.2025.03.04.06.29.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Mar 2025 06:29:05 -0800 (PST) Received: from draig (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 48E735F93C; Tue, 4 Mar 2025 14:29:04 +0000 (GMT) From: =?utf-8?Q?Alex_Benn=C3=A9e?= To: Peter Maydell Cc: qemu-arm@nongnu.org, qemu-devel@nongnu.org, Brian Cain Subject: Re: [PATCH] tests/tcg: Suppress compiler false-positive warning on sha1.c In-Reply-To: (Peter Maydell's message of "Tue, 4 Mar 2025 13:53:28 +0000") References: <20250227141343.1675415-1-peter.maydell@linaro.org> <87o6yh57r2.fsf@draig.linaro.org> <87ikoo6hbm.fsf@draig.linaro.org> User-Agent: mu4e 1.12.9; emacs 30.1 Date: Tue, 04 Mar 2025 14:29:04 +0000 Message-ID: <877c546f9r.fsf@draig.linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-TUID: UnaN7EFENH45 Peter Maydell writes: > On Tue, 4 Mar 2025 at 13:44, Alex Benn=C3=A9e wr= ote: >> >> Peter Maydell writes: >> > I think it's new-ish (gcc 11?). On the other hand >> > -Wno-unknown-warning-option is quite old, and would suppress >> > this error. If we do >> > CFLAGS+=3D-Wno-unknown-warning-option -Wno-stringop-overread >> > >> > does that work? >> >> Yes, I did: >> >> modified tests/tcg/hexagon/Makefile.target >> @@ -18,7 +18,7 @@ >> # Hexagon doesn't support gdb, so skip the EXTRA_RUNS >> EXTRA_RUNS =3D >> >> -CFLAGS +=3D -Wno-incompatible-pointer-types -Wno-undefined-internal >> +CFLAGS +=3D -Wno-incompatible-pointer-types -Wno-undefined-internal -Wn= o-unknown-warning-option >> CFLAGS +=3D -fno-unroll-loops -fno-stack-protector > > I think we should do this where we add -Wno-stringop-overread, > not just for the hexagon tests -- or are the tcg tests > guaranteed to be run with a fixed compiler from a container > regardless of the local dev environment? I can move it, but hexagon is unusual in being clang based. However the oldest compilers we use are 10.2 in the qemu/debian-legacy-test-cross container. > > -- PMm --=20 Alex Benn=C3=A9e Virtualisation Tech Lead @ Linaro