[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 3/3] configure: Enable -Wthread-safety if present
From: |
Daniel P . Berrangé |
Subject: |
Re: [PATCH 3/3] configure: Enable -Wthread-safety if present |
Date: |
Tue, 17 Jan 2023 14:02:50 +0000 |
User-agent: |
Mutt/2.2.9 (2022-11-12) |
On Tue, Jan 17, 2023 at 08:52:03AM -0500, Emanuele Giuseppe Esposito wrote:
> From: Kevin Wolf <kwolf@redhat.com>
>
> This enables clang's thread safety analysis (TSA), which we'll use to
> statically check the block graph locking.
>
> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
> Message-Id: <20221207131838.239125-9-kwolf@redhat.com>
> Reviewed-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
> ---
> configure | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/configure b/configure
> index 2281892657..14668e6269 100755
> --- a/configure
> +++ b/configure
> @@ -1183,6 +1183,7 @@ add_to warn_flags -Wnested-externs
> add_to warn_flags -Wendif-labels
> add_to warn_flags -Wexpansion-to-defined
> add_to warn_flags -Wimplicit-fallthrough=2
> +add_to warn_flags -Wthread-safety
Does this thread safety analysis have any kind of measurable
impact on compilation speed ?
Our CI jobs are quite sensitive to any increase in build
time.
With regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
[PATCH 2/3] bsd-user/mmap: use TSA_NO_TSA to suppress clang TSA warnings, Emanuele Giuseppe Esposito, 2023/01/17
- Re: [PATCH 2/3] bsd-user/mmap: use TSA_NO_TSA to suppress clang TSA warnings, Warner Losh, 2023/01/17
- Re: [PATCH 2/3] bsd-user/mmap: use TSA_NO_TSA to suppress clang TSA warnings, Emanuele Giuseppe Esposito, 2023/01/17
- Re: [PATCH 2/3] bsd-user/mmap: use TSA_NO_TSA to suppress clang TSA warnings, Kevin Wolf, 2023/01/17
- Re: [PATCH 2/3] bsd-user/mmap: use TSA_NO_TSA to suppress clang TSA warnings, Warner Losh, 2023/01/17
- Re: [PATCH 2/3] bsd-user/mmap: use TSA_NO_TSA to suppress clang TSA warnings, Kevin Wolf, 2023/01/17
- Re: [PATCH 2/3] bsd-user/mmap: use TSA_NO_TSA to suppress clang TSA warnings, Stefan Hajnoczi, 2023/01/17