The GNU Compiler Collection (GCC) Steering Committee has voted in favor of including a new Rust frontend in the compiler collection. A merge of GCC Rust, as the project is called in short, is expected before the release of GCC 13.
The committee announced the news via the internal mailing list: David Edelsohn from the GCC steering committee was responding to a post by Rust frontend developer Philip Herron, who asked the community at the end of June 2022 for feedback on the development status and potential merge of the project he is running had asked.
Rust support comes with GCC 13
The new Rust frontend has been in development since November 2020: Rust-GCC is intended to be an alternative to Rust’s official compiler based on LLVM. As of this writing, Rust isn’t feature-complete, as Herron pointed out. Among other things, the Rust Borrow Checker is still missing.
Apparently, the Steering Committee considers the development to be advanced enough that at least one beta release towards GCC 13 is within reach. According to the roadmap, the stable release of the compiler collection is planned for April 2023 and, according to the Steering Committee, should at least offer “preliminary support for Rust”.
Support the Rust GCC project
In the circular, Edelsohn asks the community to collaborate with the GCC Global Reviewers and Release Managers for technical reviews and technical approval of patches. Rust developer Herron continues to work on the project full-time so that the compiler collection can compile code written in Rust in the future. The programming language is currently on the upswing: Rust was able to take first place in the current Stack Overflow survey for the seventh time in a row, and the plans for Rust infrastructure in the Linux kernel are also apparently taking shape. According to Linus Torvalds, a merge from Linux 5.20 is in the pipeline.
David Edelsohn’s announcement on behalf of the Steering Committee can be read on the GNU GCC project website. If you want to contribute with feedback and suggestions for improvement, you will find further details on Philip Herron’s frontend project in the same post[Link auf https://gcc.gnu.org/pipermail/gcc/2022-June/238991.html]. The page contains further contact options and information on how interested parties can actively contribute. Rust-GCC has its own repository on GitHub.