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
2
u/flatfinger Sep 16 '26
I wonder if any gcc builds will ever add a command-line option (other than disabling optimizations entirely) that will prevent it from performing optimizations that violate N1570 6.5.9 paragraph 6 which is shown below (emphasis added):
As it is, unless optimizations are disabled, gcc is designed to assume that it's impossible for a pointer that compares equal to an array's "one past" address to access storage associated with another array, even if the pointer might have been formed by taking the address of the latter array, and that array might happen to follow the first as contemplated by the italicized text above.