* tas_n.c (libat_test_and_set): Correct return. Remove unused variable.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@187783
138bc75d-0d04-0410-961f-
82ee72b054a4
+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.
bool
SIZE(libat_test_and_set) (UTYPE *mptr, int smodel)
{
- UTYPE oldval, newval;
+ UTYPE oldval;
UWORD magic;
pre_seq_barrier (smodel);
protect_end (mptr, magic);
post_seq_barrier (smodel);
- return ret != 0;
+ return oldval != 0;
}
#define DONE 1