From patchwork Fri Jun 11 10:46:25 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [trans-mem] libitm: bad comparison in clone_entry_compare Date: Fri, 11 Jun 2010 00:46:25 -0000 From: Patrick Marlier X-Patchwork-Id: 55308 Message-Id: <4C121401.1050102@unine.ch> To: Richard Henderson Cc: Aldy Hernandez , FELBER Pascal , "gcc-patches@gcc.gnu.org" Hello Richard, Just a small mistake in clone.cc. The comparison must be "greater than". This was making troubles to find clone functions since the table is not well sorted. Thank you. Have a nice day, Patrick Marlier. Index: clone.cc =================================================================== --- clone.cc (revision 160599) +++ clone.cc (working copy) @@ -113,7 +113,7 @@ if (aa->orig < bb->orig) return -1; - else if (aa->orig < bb->orig) + else if (aa->orig > bb->orig) return 1; else return 0;