This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix __atomic_compare_exchange library call and tests
- From: Andrew MacLeod <amacleod at redhat dot com>
- To: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Cc: Richard Henderson <rth at redhat dot com>
- Date: Wed, 16 Nov 2011 17:10:05 -0500
- Subject: [PATCH] Fix __atomic_compare_exchange library call and tests
__atomic_compare_exchange has 6 parameters of which one is a boolean
indicating whether its the weak or strong variation.
The external library doesn't bother with the weak condition, so it only
has 5 parameters. When generating the external call for the size
specific __atomic_compare_exchange_N variations, that parameter wasn't
being removed. It also wasn't being caught by the tests, so I modified
the existing testcases to expect certain values and to make sure they
are right.
Bootstraps on x86_64-unknown-linux-gnu with no new regressions.
Andrew
Attachment:
P
Description: Text document