tech-toolchain archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: netbsd-11 gcc bug
> On May 28, 2026, at 5:40 PM, Greg A. Woods <woods%planix.ca@localhost> wrote:
>
> The reason for the "belief" that UB is (often) related to optimizers is
> squarely resting on the fact that when the optimizer is turned off then
> the UB goes away. So it's not really a belief -- it's a demonstrable
> fact!
Eh.. The undefined behavior doesn’t go away, per se, it just is undefined differently :-)
Maybe a better say to state it is: “when the optimizer is turned off, the unexpected behavior goes away”.
-- thorpej
Home |
Main Index |
Thread Index |
Old Index