Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend SIMDE_DIAGNOSTIC_DISABLE_PSABI to Clang #1244

Open
robinchrist opened this issue Dec 9, 2024 · 1 comment
Open

Extend SIMDE_DIAGNOSTIC_DISABLE_PSABI to Clang #1244

robinchrist opened this issue Dec 9, 2024 · 1 comment

Comments

@robinchrist
Copy link
Contributor

I'm using Clang and getting a lot of warnings, like:

otfftpp/include/otfftpp/detail/otfft_avxdit16.h:1197:17: warning: AVX vector argument of type 'const ymm' (aka 'const simde__m256') without 'avx' enabled changes the ABI [-Wpsabi]
                setpz2(xq+s*0xf, addpz2(s08mjs4c_pw_s2amjs6e, h1_s19mjs5d_pw_s3bmjs7f));

For GCC there seems to be something:

/* GCC emits a lot of "notes" about the ABI being different for things
* in newer versions of GCC. We don't really care because all our
* functions are inlined and don't generate ABI. */
#if HEDLEY_GCC_VERSION_CHECK(7,0,0)
#define SIMDE_DIAGNOSTIC_DISABLE_PSABI_ _Pragma("GCC diagnostic ignored \"-Wpsabi\"")
#else
#define SIMDE_DIAGNOSTIC_DISABLE_PSABI_
#endif

However not for Clang. Could this perhaps be added?

@mr-c
Copy link
Collaborator

mr-c commented Dec 11, 2024

Hello @robinchrist ; yes, I would accept a pull request that added the equivalent for clang

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants