This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[trans-mem] libitm: bad comparison in clone_entry_compare
- From: Patrick Marlier <patrick dot marlier at unine dot ch>
- To: Richard Henderson <rth at redhat dot com>
- Cc: Aldy Hernandez <aldyh at redhat dot com>, FELBER Pascal <pascal dot felber at unine dot ch>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 11 Jun 2010 12:46:25 +0200
- Subject: [trans-mem] libitm: bad comparison in clone_entry_compare
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;