mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 14:59:39 +02:00
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
This commit is contained in:
committed by
John David Anglin
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
|
||||
|
||||
Reference in New Issue
Block a user