Re: netbsd-11 gcc bug

Jason Thorpe <[email protected]> Thu, 28 May 2026 19:04:07 -0400
Newsgroups gmane.os.netbsd.devel.toolchain
Message-ID <[email protected]>
> On May 28, 2026, at 5:40=E2=80=AFPM, Greg A. Woods <[email protected]> =
wrote:
>=20
> 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=E2=80=99t go away, per se, it just is =
undefined differently :-)

Maybe a better say to state it is: =E2=80=9Cwhen the optimizer is turned =
off, the unexpected behavior goes away=E2=80=9D.

-- thorpej