[patch] Speed up find_pc_section

Paul Pluzhnikov ppluzhnikov@google.com
Fri Sep 11 07:51:00 GMT 2009


On Fri, Sep 11, 2009 at 12:39 AM, Mark Kettenis <mark.kettenis@xs4all.nl> wrote:

>> -  return 0;
>> +  if (sect1->objfile->mtime < sect2->objfile->mtime) return -1;
>> +  if (sect1->objfile->mtime > sect2->objfile->mtime) return 1;
>> +  return 0;
>> }
>
> This snippet caught my eye.  Please put those return statements on a
> line of their own.

This wasn't a real patch, just something I typed by hand.
Yes, I will certainly put return on a separate line IF it is
considered reasonable (which I somewhat doubt).


-- 
Paul Pluzhnikov



More information about the Gdb-patches mailing list