re PR other/53231 (libatomic/tas_n.c💯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
This commit is contained in:
parent
4579805199
commit
917344232c
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
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>
|
2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
* configure: Regenerated.
|
* configure: Regenerated.
|
||||||
|
|
|
@ -85,7 +85,7 @@ SIZE(libat_test_and_set) (UTYPE *mptr, int smodel)
|
||||||
bool
|
bool
|
||||||
SIZE(libat_test_and_set) (UTYPE *mptr, int smodel)
|
SIZE(libat_test_and_set) (UTYPE *mptr, int smodel)
|
||||||
{
|
{
|
||||||
UTYPE oldval, newval;
|
UTYPE oldval;
|
||||||
UWORD magic;
|
UWORD magic;
|
||||||
|
|
||||||
pre_seq_barrier (smodel);
|
pre_seq_barrier (smodel);
|
||||||
|
@ -97,7 +97,7 @@ SIZE(libat_test_and_set) (UTYPE *mptr, int smodel)
|
||||||
protect_end (mptr, magic);
|
protect_end (mptr, magic);
|
||||||
post_seq_barrier (smodel);
|
post_seq_barrier (smodel);
|
||||||
|
|
||||||
return ret != 0;
|
return oldval != 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#define DONE 1
|
#define DONE 1
|
||||||
|
|
Loading…
Add table
Reference in a new issue