-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Switch to LLVM/clang 16 (16.0.3) #49678
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
Changes from all commits
89a76c2
0f7f620
c37fe64
c525d13
cf987db
e278081
82536fe
08b8b7e
bf17c81
a794177
6e9985a
432250a
184efcb
833652b
be39e8e
e1d7f46
051d0e5
fa4099b
d03ae2a
0610865
d8dd50a
9b3bcd0
a15d088
2f9a7cb
88b07d1
a0cc5b7
dde5357
d56e142
91ffe8b
784e5c2
9db7879
00fdfa1
e5c4eb3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -267,7 +267,10 @@ | |
| url = https://github.com/ClickHouse/nats.c | ||
| [submodule "contrib/vectorscan"] | ||
| path = contrib/vectorscan | ||
| url = https://github.com/VectorCamp/vectorscan | ||
| # FIXME: update once upstream fixes will be merged: | ||
| # - https://github.com/VectorCamp/vectorscan/pull/148 | ||
| # - https://github.com/VectorCamp/vectorscan/pull/149 | ||
| url = https://github.com/azat-ch/vectorscan | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry for being a bit late for the party, but there's no need to change the url. It is available all over the forks
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am on it ...
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @Felixoid I don't mind leaving my fork, but a) I guess it is some kind of unspoken rule to use ClickHouse namespace for forks and b) it makes sense most of the time, since if fork will be removed, then you will not be able to download it (though personally I - not going to remove this forks, but still).
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I also don't mind too much. I would say the unspoken rule is "reference upstream if possible (= there are no custom patches), otherwise reference a fork in the ClickHouse organization". Anyways, after making some silly mess, I now
Your two pushes against vectorscan upstream remain as is (fingers crossed they are merged). |
||
| [submodule "contrib/c-ares"] | ||
| path = contrib/c-ares | ||
| url = https://github.com/ClickHouse/c-ares | ||
|
|
||
| +1 −1 | src/rose/program_runtime.c | |
| +16 −2 | src/util/small_vector.h |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -108,6 +108,10 @@ struct NgramDistanceImpl | |
|
|
||
| if constexpr (case_insensitive) | ||
| { | ||
| #if defined(MEMORY_SANITIZER) | ||
| /// Due to PODArray padding accessing more elements should be OK | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Speaking of tests/msan_suppressions.txt, it contains another suppression Looks like msan16 no longer picks these suppressions up. |
||
| __msan_unpoison(code_points + (N - 1), padding_offset * sizeof(CodePoint)); | ||
| #endif | ||
| /// We really need template lambdas with C++20 to do it inline | ||
| unrollLowering<N - 1>(code_points, std::make_index_sequence<padding_offset>()); | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just an interesting observation: "cmake/sanitize.cmake" sets
-fsanitize-blacklist=${CMAKE_SOURCE_DIR}/tests/msan_suppressions.txtfor msan. This file contains linefun:roseRunProgramthat suppresses msan warnings in top-level (publicly callable) function "roseRunProgram ()" in rose/program_runtime.c. In other words, it achieves theoretically the same thing as VectorCamp/vectorscan#149.But the GCC devs agree with your approach, https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61978#c1 😄.
Anyways, once this PR is in, I can try to clean out msan_suppressions.txt, it seems redundant and un-obvious to have an alternative way to suppress msan warnings.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, I totally forgot to look at MSan suppressions, thanks! I want check it again now, need to get full stack trace to compare why it does not work in debug build, and works in release.
There is actually one more fix for this - ClickHouse/boost#12, I tried to fix this in the
small_vector, but since clang-16 it was not easy (I wrote about this in the vectorscan PR)Will take a look, but first, I need to check why it didn't work (maybe there is something more...)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like you already did this - #49829, thanks!
But the question why suppressions does not work, it still open.