[PATCH] C undefined behavior fix

Linus Torvalds torvalds@transmeta.com
Sun Jan 6 20:59:00 GMT 2002


On 7 Jan 2002, Alexandre Oliva wrote:
> On Jan  7, 2002, Linus Torvalds <torvalds@transmeta.com> wrote:
>
> > Which choice do you think is the _intelligent_ one?
>
> I'd surely go with the implementation that makes code with defined
> behavior work correctly and as fast as possible.

But _both_ do that for the constant case. And have you ever seen the
non-constant case?

		Linus



More information about the Gcc mailing list