News for hackers. Stuff that matters.
Re:GCC undefined behaviors are getting wild by sanxiyn on Monday November 28, 2022 @09:04AM (#33773750)
It is the original reason. For example, register allocation is possible because stack smashing is UB.
Re:GCC undefined behaviors are getting wild by masklinn on Monday November 28, 2022 @10:03AM (#33774460)
UB is also very much based around software incompatibilities though, not just the ability to optimise stuff.

But where IB can have useful definitions to document, UB was defined so because the behaviours were considered sufficiently divergent that allowing them was useless, and so it was much easier to just forbid them all.