All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Alex Bennée" <alex.bennee@linaro.org>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: qemu-arm@nongnu.org,  qemu-devel@nongnu.org,
	 Brian Cain <brian.cain@oss.qualcomm.com>
Subject: Re: [PATCH] tests/tcg: Suppress compiler false-positive warning on sha1.c
Date: Tue, 04 Mar 2025 15:58:40 +0000	[thread overview]
Message-ID: <87v7so4wjz.fsf@draig.linaro.org> (raw)
In-Reply-To: <CAFEAcA_nbax7qq7Lxc-Qo8xTaxxTn9dJ5VQYuQTy+Qp1_2mNXg@mail.gmail.com> (Peter Maydell's message of "Tue, 4 Mar 2025 14:36:42 +0000")

Peter Maydell <peter.maydell@linaro.org> writes:

> On Tue, 4 Mar 2025 at 14:29, Alex Bennée <alex.bennee@linaro.org> wrote:
>>
>> Peter Maydell <peter.maydell@linaro.org> writes:
>>
>> > On Tue, 4 Mar 2025 at 13:44, Alex Bennée <alex.bennee@linaro.org> wrote:
>> >>
>> >> Peter Maydell <peter.maydell@linaro.org> 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+=-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 =
>> >>
>> >> -CFLAGS += -Wno-incompatible-pointer-types -Wno-undefined-internal
>> >> +CFLAGS += -Wno-incompatible-pointer-types -Wno-undefined-internal -Wno-unknown-warning-option
>> >>  CFLAGS += -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.
>
> My question was more "do we only ever build this test with
> a fixed set of compilers that we control, or are we instead
> maybe sometimes using the user's clang/cc/gcc" ?

Its certainly possible - at least on a Debian system or with the
appropriate --cross-cc-$ARCH flags. I expect 99% of devs either have
Debian or Docker/Podman to fall back on.

> If the latter, we definitely need to associate the
> "don't warn about unknown warnings" with the place we are
> adding the option that's not known across all our supported
> compilers. If the former, then putting it in the hexagon
> specific file seems OK I guess.
>
> -- PMM

-- 
Alex Bennée
Virtualisation Tech Lead @ Linaro

  reply	other threads:[~2025-03-04 15:58 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-27 14:13 [PATCH] tests/tcg: Suppress compiler false-positive warning on sha1.c Peter Maydell
2025-02-27 16:35 ` Richard Henderson
2025-02-27 22:23 ` Alex Bennée
2025-03-04 11:56 ` Alex Bennée
2025-03-04 12:51   ` Peter Maydell
2025-03-04 13:44     ` Alex Bennée
2025-03-04 13:53       ` Peter Maydell
2025-03-04 14:29         ` Alex Bennée
2025-03-04 14:36           ` Peter Maydell
2025-03-04 15:58             ` Alex Bennée [this message]
2025-03-05 14:56     ` Brian Cain
2025-03-05 16:52       ` Peter Maydell
2025-03-05 16:56       ` Alex Bennée

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87v7so4wjz.fsf@draig.linaro.org \
    --to=alex.bennee@linaro.org \
    --cc=brian.cain@oss.qualcomm.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-arm@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.