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

2015-06-05 Thread Peter Maydell
On 5 June 2015 at 16:55, Paolo Bonzini 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.

Re: [Consult] g++: About "-Wunused-variable" for constant variable initialized by function

2014-10-13 Thread Peter Maydell
On 12 October 2014 16:32, Chen Gang wrote: > Hello All: > > I found an issue about g++, it is OK for "-Wall -O0", but will report > -Wunused-variable for "-Wall -O1|2|3|s". The original version (e.g. > gcc 4.8.3 redhat version) does not report warning for "-Wall -O?". > > The related operation: >