[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v7 02/22] tests/fp/berkeley-testfloat-3: Ignore ignored #pragma d
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH v7 02/22] tests/fp/berkeley-testfloat-3: Ignore ignored #pragma directives |
Date: |
Mon, 7 Mar 2022 00:17:33 +0100 |
From: Philippe Mathieu-Daudé <f4bug@amsat.org>
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.
Having:
$ cc -v
Apple clang version 13.0.0 (clang-1300.0.29.30)
Reported-by: Roman Bolshakov <roman@roolebo.dev>
Reviewed-by: Akihiko Odaki <akihiko.odaki@gmail.com>
Tested-by: Akihiko Odaki <akihiko.odaki@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
tests/fp/meson.build | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/tests/fp/meson.build b/tests/fp/meson.build
index 59776a00a7..8bd0979f67 100644
--- a/tests/fp/meson.build
+++ b/tests/fp/meson.build
@@ -37,6 +37,11 @@ tfcflags = [
'-Wno-error',
]
+if cc.get_id() == 'clang'
+ # Clang does not support '#pragma STDC FENV_ACCESS'
+ tfcflags += [ '-Wno-ignored-pragmas' ]
+endif
+
tfgencases = [
tfdir / 'genCases_ui32.c',
tfdir / 'genCases_ui64.c',
--
2.34.1
- [PATCH v7 00/22] host: Support macOS 12, Philippe Mathieu-Daudé, 2022/03/06
- [PATCH v7 01/22] configure: Allow passing extra Objective C compiler flags, Philippe Mathieu-Daudé, 2022/03/06
- [PATCH v7 02/22] tests/fp/berkeley-testfloat-3: Ignore ignored #pragma directives,
Philippe Mathieu-Daudé <=
- [PATCH v7 03/22] hvf: Use standard CR0 and CR4 register definitions, Philippe Mathieu-Daudé, 2022/03/06
- [PATCH v7 04/22] hvf: Make hvf_get_segments() / hvf_put_segments() local, Philippe Mathieu-Daudé, 2022/03/06
- [PATCH v7 05/22] hvf: Remove deprecated hv_vcpu_flush() calls, Philippe Mathieu-Daudé, 2022/03/06
- [PATCH v7 06/22] hvf: Fix OOB write in RDTSCP instruction decode, Philippe Mathieu-Daudé, 2022/03/06
- [PATCH v7 07/22] block/file-posix: Remove a deprecation warning on macOS 12, Philippe Mathieu-Daudé, 2022/03/06
- [PATCH v7 08/22] audio/coreaudio: Remove a deprecation warning on macOS 12, Philippe Mathieu-Daudé, 2022/03/06