mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-11 04:49:29 +08:00
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
@ -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>
|
||||
|
||||
* 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
|
||||
|
Loading…
Reference in New Issue
Block a user