This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB 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: PATCH: Fix read_leb128 in readelf for 64bit host


On Tue, Dec 28, 2004 at 01:13:14PM -0000, Dave Korn wrote:
>   IIRC

You don't :-)  C99 6.5.7#3...

> the C spec says shift amounts >=32 are undefined behaviour, even in the
> presence of larger integer types.

-- 
Daniel Jacobowitz


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