This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PR c/6677 and al.


Eric Botcazou wrote:-

> > The value of (i << 1) is undefined according to the C standard
> > (6.5.7[#4]), thus setting j to 42 would be perfectly valid. :-)
> 
> Thus any argument of consistency is blown away ?

That started with the CPU when 1U << 31 was a big number, but 1U << 32
was 1.

Neil.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]