Skip to content

Commit 0f50d53

Browse files
committed
psabi warnings: always silence
Fixes: #1244
1 parent 83141fd commit 0f50d53

File tree

4 files changed

+12
-7
lines changed

4 files changed

+12
-7
lines changed

simde/simde-diagnostic.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@
8484
* functions are inlined and don't generate ABI. */
8585
#if HEDLEY_GCC_VERSION_CHECK(7,0,0)
8686
#define SIMDE_DIAGNOSTIC_DISABLE_PSABI_ _Pragma("GCC diagnostic ignored \"-Wpsabi\"")
87+
#elif SIMDE_DETECT_CLANG_VERSION_CHECK(11, 0, 0)
88+
#define SIMDE_DIAGNOSTIC_DISABLE_PSABI_ _Pragma("clang diagnostic ignored \"-Wpsabi\"")
8789
#else
8890
#define SIMDE_DIAGNOSTIC_DISABLE_PSABI_
8991
#endif

simde/x86/aes.h

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* MIT License
1+
/* SPDX-License-Identifier: MIT
22
*
33
* Permission is hereby granted, free of charge, to any person
44
* obtaining a copy of this software and associated documentation
@@ -35,6 +35,10 @@
3535

3636
#include "sse2.h"
3737

38+
HEDLEY_DIAGNOSTIC_PUSH
39+
SIMDE_DISABLE_UNWANTED_DIAGNOSTICS
40+
SIMDE_BEGIN_DECLS_
41+
3842
/*
3943
* Multiplication in GF(2^8)
4044
* http://en.wikipedia.org/wiki/Finite_field_arithmetic
@@ -414,4 +418,8 @@ simde__m128i simde_mm_aesimc_si128(simde__m128i a) {
414418

415419
#undef simde_x_aes_Nb
416420

421+
SIMDE_END_DECLS_
422+
423+
HEDLEY_DIAGNOSTIC_POP
424+
417425
#endif /* !defined(SIMDE_X86_AES_H) */

test/meson.build

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@ foreach omp_arg : ['-fopenmp-simd', '-qopenmp-simd']
3131
endforeach
3232

3333
simde_native_c_flags = []
34-
if cc.has_argument('-Wpsabi')
35-
simde_native_c_flags += '-Wno-psabi'
36-
endif
3734
# if cc.has_argument('-march=native+simd')
3835
# simde_native_c_flags += '-march=native+simd'
3936
# elif cc.has_argument('-march=native')
@@ -45,9 +42,6 @@ if cc.get_id() == 'intel'
4542
endif
4643

4744
simde_native_cxx_flags = []
48-
if cxx.has_argument('-Wpsabi')
49-
simde_native_cxx_flags += '-Wno-psabi'
50-
endif
5145
# if cxx.has_argument('-march=native+simd')
5246
# simde_native_cxx_flags += '-march=native+simd'
5347
# elif cxx.has_argument('-march=native')

test/test.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ typedef enum SimdeTestVecPos {
2727

2828

2929
/* all tests benefit from these */
30+
SIMDE_DIAGNOSTIC_DISABLE_PSABI_
3031
SIMDE_DIAGNOSTIC_DISABLE_PADDED_
3132
SIMDE_DIAGNOSTIC_DISABLE_CPP98_COMPAT_PEDANTIC_
3233
SIMDE_DIAGNOSTIC_DISABLE_VLA_

0 commit comments

Comments
 (0)