undefined behavior of signed left shifts (was Re: [PULL 00/40] ppc patch queue 2015-06-03)

Peter Maydell peter.maydell@linaro.org
Fri Jun 5 17:33:00 GMT 2015

On 5 June 2015 at 16:55, Paolo Bonzini <pbonzini@redhat.com> wrote:
> The GCC manual says "GCC does not use the latitude given in C99 and C11
> only to treat certain aspects of signed '<<' as undefined, but this is
> subject to change".  It would certainly be nice if they removed the
> "this is subject to change" part.

Does clang provide a similar guarantee? I couldn't find one in
a quick scan through the docs, but I might be looking in the
wrong place.

-- PMM

More information about the Gcc mailing list