File tree Expand file tree Collapse file tree 4 files changed +12
-7
lines changed
Expand file tree Collapse file tree 4 files changed +12
-7
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
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) */
Original file line number Diff line number Diff line change @@ -31,9 +31,6 @@ foreach omp_arg : ['-fopenmp-simd', '-qopenmp-simd']
3131endforeach
3232
3333simde_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'
4542endif
4643
4744simde_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')
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ typedef enum SimdeTestVecPos {
2727
2828
2929/* all tests benefit from these */
30+ SIMDE_DIAGNOSTIC_DISABLE_PSABI_
3031SIMDE_DIAGNOSTIC_DISABLE_PADDED_
3132SIMDE_DIAGNOSTIC_DISABLE_CPP98_COMPAT_PEDANTIC_
3233SIMDE_DIAGNOSTIC_DISABLE_VLA_
You can’t perform that action at this time.
0 commit comments