Commit 91734423 by John David Anglin Committed by John David Anglin

re PR other/53231 (libatomic/tas_n.c:100:10: error: 'ret' undeclared (first use in this function))

	PR other/53231
	* tas_n.c (libat_test_and_set): Correct return.  Remove unused variable.

From-SVN: r187783
parent 45798051
2012-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
PR other/53231
* tas_n.c (libat_test_and_set): Correct return. Remove unused variable.
2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
* configure: Regenerated.
......
......@@ -85,7 +85,7 @@ SIZE(libat_test_and_set) (UTYPE *mptr, int smodel)
bool
SIZE(libat_test_and_set) (UTYPE *mptr, int smodel)
{
UTYPE oldval, newval;
UTYPE oldval;
UWORD magic;
pre_seq_barrier (smodel);
......@@ -97,7 +97,7 @@ SIZE(libat_test_and_set) (UTYPE *mptr, int smodel)
protect_end (mptr, magic);
post_seq_barrier (smodel);
return ret != 0;
return oldval != 0;
}
#define DONE 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment