4 ms·
My impression from Rust/LLVM bugs is that LLVM is only a C++ compiler, except where people complained long and loud enough. Rust had to add patches to support
by pornel 3y ago
My impression from Rust/LLVM bugs is that LLVM is only a C++ compiler, except where people complained long and loud enough.
Rust had to add patches to support optimization of Rust allocators (not just malloc and new). Ran into several bugs in mutable aliasing that doesn’t exist in C++ and is very rudimentary in C. Spent seven years fighting with miscompilations due to a C++ rule that infinite loops are UB. Had to implement custom float to int casts to avoid C UB, and so on.
- deleted 3y ago[deleted]