From patchwork Fri Jun 11 10:46:25 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick Marlier X-Patchwork-Id: 55308 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 342A8B7D29 for ; Fri, 11 Jun 2010 20:47:08 +1000 (EST) Received: (qmail 29745 invoked by alias); 11 Jun 2010 10:46:41 -0000 Received: (qmail 29675 invoked by uid 22791); 11 Jun 2010 10:46:38 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL, BAYES_00, SPF_HELO_PASS, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from columba.unine.ch (HELO unine.ch) (130.125.1.53) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 11 Jun 2010 10:46:32 +0000 Received: from mail-11.unine.ch ([130.125.5.94]) by unine.ch stage1 with esmtps (Exim MailCleaner) id 1ON1kr-0005o8-IA from ; Fri, 11 Jun 2010 12:46:29 +0200 Received: from mail-20.UNINE.CH (130.125.1.39) by mail-11.UNINE.CH (130.125.5.94) with Microsoft SMTP Server (TLS) id 8.1.436.0; Fri, 11 Jun 2010 12:46:28 +0200 Received: from [130.125.11.134] (130.125.11.134) by webmail.unine.ch (130.125.1.20) with Microsoft SMTP Server (TLS) id 8.1.436.0; Fri, 11 Jun 2010 12:46:28 +0200 Message-ID: <4C121401.1050102@unine.ch> Date: Fri, 11 Jun 2010 12:46:25 +0200 From: Patrick Marlier User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100423 Thunderbird/3.0.4 MIME-Version: 1.0 To: Richard Henderson CC: Aldy Hernandez , FELBER Pascal , "gcc-patches@gcc.gnu.org" Subject: [trans-mem] libitm: bad comparison in clone_entry_compare X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list 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;