This is the mail archive of the gdb-patches@sourceware.org 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: [RFC, v2] Fix PR symtab/15391


On 05/14/2013 03:37 PM, Tom Tromey wrote:
>>>>>> "Pedro" == Pedro Alves <palves@redhat.com> writes:
> 
> Pedro> I believe left-shifting a negative number is actually undefined
> Pedro> behavior.
> 
> Whoops.  Thanks for noticing.
> I will fix that.
> 
> Maybe we need a generic sign-extension function.
> I see a lot of code around to do this various ways.

That'd be fine with me.  I'm suprised bfd doesn't have it.  It
uses that idiom in several places.

-- 
Pedro Alves


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