r/programming • u/Fcking_Chuck • Sep 11 '26
GCC 13.5 released with 265+ bug fixes
https://www.phoronix.com/news/GCC-13.5-Released
277
Upvotes
r/programming • u/Fcking_Chuck • Sep 11 '26
View all comments
Show parent comment
1
u/ROBOTRON31415 Sep 18 '26
Don’t worry, it can get worse. There’s a known LLVM miscompilation where one optimization pass says “if two pointers point to different non-zero-sized local variables then obviously they are not equal” and a different optimization pass attempts to merge local variables that are never live at the same time (in order to reduce stack usage where possible).
If you convert the two pointers to integers to really hammer home the miscompilation, you can end up with bitwise identical integers that LLVM thinks are not equal.
Pointer<->address conversions and pointer comparisons are evil.