* libsupc++/guard.cc: Revert my last commit.
authorUros Bizjak <uros@gcc.gnu.org>
Fri, 18 Mar 2016 15:44:44 +0000 (16:44 +0100)
committerUros Bizjak <uros@gcc.gnu.org>
Fri, 18 Mar 2016 15:44:44 +0000 (16:44 +0100)
From-SVN: r234336

libstdc++-v3/ChangeLog
libstdc++-v3/libsupc++/guard.cc

index 76cc284..8d5312d 100644 (file)
@@ -1,13 +1,3 @@
-2016-03-18  Uros Bizjak  <ubizjak@gmail.com>
-
-       Revert:
-       2015-07-02  Uros Bizjak  <ubizjak@gmail.com>
-
-       * libsupc++/guard.cc (__test_and_acquire): Use __p after __atomic_load
-       to avoid unused variable warning.
-       (__set_and_release): Use __p after __atomic_store to avoid unused
-       variable warning.
-
 2016-02-24  Jonathan Wakely  <jwakely@redhat.com>
 
        PR libstdc++/69939
index 1b1b23c..9b61799 100644 (file)
@@ -117,6 +117,7 @@ __test_and_acquire (__cxxabiv1::__guard *g)
   unsigned char __c;
   unsigned char *__p = reinterpret_cast<unsigned char *>(g);
   __atomic_load (__p, &__c,  __ATOMIC_ACQUIRE);
+  (void) __p;
   return _GLIBCXX_GUARD_TEST(&__c);
 }
 #  define _GLIBCXX_GUARD_TEST_AND_ACQUIRE(G) __test_and_acquire (G)
@@ -132,6 +133,7 @@ __set_and_release (__cxxabiv1::__guard *g)
   unsigned char *__p = reinterpret_cast<unsigned char *>(g);
   unsigned char val = 1;
   __atomic_store (__p, &val, __ATOMIC_RELEASE);
+  (void) __p;
 }
 #  define _GLIBCXX_GUARD_SET_AND_RELEASE(G) __set_and_release (G)
 # endif