Warnings in emmintrin.h and xmmintrin.h are reported by -fsanitize=implicit-integer-sign-change
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Rename test file to x86-header-warnings.c or something similarly specific?
clang/test/Headers/warn-cleanup.c | ||
---|---|---|
10 ↗ | (On Diff #254784) | Use x8intrin.h directly so its easier to expand in the future? |
@craig.topper Any comments? Hopefully we can add extra tests as time goes on (for instance I'm intending to add Wdocumentation test coverage for PR35949).
clang/test/Headers/x86-header-warnings.c | ||
---|---|---|
12 | Add a LABEL check as well |
clang/test/Headers/x86-header-warnings.c | ||
---|---|---|
3 | Does Wsystem-headers add too much noise? |
clang/test/Headers/x86-header-warnings.c | ||
---|---|---|
3 | Thanks for the suggestion, I did not thought about adding Wsystem-headers, I tested Wsystem-headers now though and cant seem to pick up on that particular issue without the preprocessing step. | |
12 | Adding label sounds good, went ahead and commited without checking the test was not failing anymore, sorry will revert. |
It looks like you're not actually interested in the compiled output, but just whether warnings occurred; in that case you'd be better off with -verify -fsyntax-only and // expected-no-diagnostics.
Sounds good! Committed at https://github.com/llvm/llvm-project/commit/937e63b8d5e961c2a7da25558bbcdd5388182b67
Thanks!
Does Wsystem-headers add too much noise?