[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v5 03/16] tests/fp/berkeley-testfloat-3: Ignore ignored #prag
From: |
Peter Maydell |
Subject: |
Re: [PATCH v5 03/16] tests/fp/berkeley-testfloat-3: Ignore ignored #pragma directives |
Date: |
Thu, 17 Feb 2022 18:36:53 +0000 |
On Mon, 14 Feb 2022 at 18:56, Philippe Mathieu-Daudé <f4bug@amsat.org> wrote:
>
> Since we already use -Wno-unknown-pragmas, we can also use
> -Wno-ignored-pragmas. This silences hundred of warnings using
> clang 13 on macOS Monterey:
>
> [409/771] Compiling C object
> tests/fp/libtestfloat.a.p/berkeley-testfloat-3_source_test_az_f128_rx.c.o
> ../tests/fp/berkeley-testfloat-3/source/test_az_f128_rx.c:49:14: warning:
> '#pragma FENV_ACCESS' is not supported on this target - ignored
> [-Wignored-pragmas]
> #pragma STDC FENV_ACCESS ON
> ^
> 1 warning generated.
>
GCC doesn't know about -Wignored-pragmas, so this change is relying on
the GCC "ignore a -Wno-something that this gcc doesn't recognize
if we wouldn't otherwise be complaining about something" behaviour.
I forget which GCC version that was introduced in... (This is why
configure has the cc_has_warning_flag() test before it tries to
use a warning/warning-suppression option.)
-- PMM
- [PATCH v5 00/16] host: Support macOS 12, Philippe Mathieu-Daudé, 2022/02/14
- [PATCH v5 01/16] MAINTAINERS: Add Akihiko Odaki to macOS-relateds, Philippe Mathieu-Daudé, 2022/02/14
- [PATCH v5 02/16] configure: Allow passing extra Objective C compiler flags, Philippe Mathieu-Daudé, 2022/02/14
- [PATCH v5 03/16] tests/fp/berkeley-testfloat-3: Ignore ignored #pragma directives, Philippe Mathieu-Daudé, 2022/02/14
- Re: [PATCH v5 03/16] tests/fp/berkeley-testfloat-3: Ignore ignored #pragma directives,
Peter Maydell <=
- [PATCH v5 04/16] hvf: Use standard CR0 and CR4 register definitions, Philippe Mathieu-Daudé, 2022/02/14
- [PATCH v5 05/16] hvf: Fix OOB write in RDTSCP instruction decode, Philippe Mathieu-Daudé, 2022/02/14
- [PATCH v5 06/16] hvf: Enable RDTSCP support, Philippe Mathieu-Daudé, 2022/02/14
- [PATCH v5 07/16] hvf: Make hvf_get_segments() / hvf_put_segments() local, Philippe Mathieu-Daudé, 2022/02/14
- [PATCH v5 08/16] hvf: Remove deprecated hv_vcpu_flush() calls, Philippe Mathieu-Daudé, 2022/02/14
- [PATCH v5 09/16] block/file-posix: Remove a deprecation warning on macOS 12, Philippe Mathieu-Daudé, 2022/02/14
- [PATCH v5 10/16] audio/coreaudio: Remove a deprecation warning on macOS 12, Philippe Mathieu-Daudé, 2022/02/14