-
Notifications
You must be signed in to change notification settings - Fork 78
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
Upgrade Checked C clang sources to clang mainline 17.0 #1204
Comments
BTW, C doesn't evolve that fast and the C front-end does not have that many bugs. The upgrade overhead here is mostly due to working in a shared C/C++/Objective C front-end code base. |
Here was the status as of June 3rd: Here is the summary of my latest run on a Windows x64 system using the 17-init-main branch:
357 of the failing tests are for the 3C tool, which leaves 101 other failing clang tests. |
Here is the status as of August 31st:
|
With this PR complete, we are now down to 68 failing tests: Testing Time: 6106.22s |
In March 2024, we decided that we need to upgrade the Checked C clang sources to a newer version of clang. The Checked C clang source are currently based on clang 12.0.2, from Jan. 2021.
I updated the Wiki page on upgrading the compiler sources to point the most recent documentation on this.
I looked at clang 16.0 from July 2022 and clang 17.0 from Jan. 2023. In both cases, I merged the Checked clang sources into a baseline branch that matches upstream. I then committed the changes with the merge markers and diff'ed the two versions with merge conflicts. It does not look like much more work to jump to clang 17.0 instead of clang 16.0. There were only 95 merge chunks that differed between the two (and these could be because upstream changed relative to itself).
We will aim from clang 17.0. I've pushed two branches: 17-init-baseline, which just mirrors upstream at the point where the branch for 17.0 was a taken and 17-init-main, which has the Checked C clang sources merged into. We always smaller changes (the Checked C changes) into the clang sources (which have much more changes).
If you look at dates, we will be updating to 2 years of changes. This is about 2/3 of the time delta. This seems look a reasonable mid-point to aim for.
I am tracking progress on resolving the merge conflicts with the following files:
The current work is to resolve merge conflicts and get clang to compile again. The approach is to:
The text was updated successfully, but these errors were encountered: