Re: C compiler (over-)optimization (was: netbsd-11 gcc bug)

Andrew Cagney <[email protected]> Sun, 31 May 2026 13:02:11 -0400
Newsgroups gmane.os.netbsd.devel.toolchain
Message-ID <CAJeAr6srT0w2HN+MDoPUiPcfw2tFs+4ds+NiN5AaT-Xk3eoo2Q@mail.gmail.com>
> Maybe we go back to PCC and make sure it evolves to conform to a variant
> of C where there is no UB -- only IDB, i.e. as you said, the compiler
> explicitly defines semantics for everything that the C Lawyers call UB.

That runs the risk of compiler and language lock-in.

I'm more worried about things like this:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125524