OSDN Git Service

* include/ext/atomicity.h
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 22 Apr 2009 13:13:55 +0000 (13:13 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 22 Apr 2009 13:13:55 +0000 (13:13 +0000)
(__exchange_and_add, __atomic_add): Mark throw ().
* config/os/aix/atomicity.h
* config/os/aix/atomicity.h
* config/os/irix/atomicity.h
* config/cpu/cris/atomicity.h
* config/cpu/m68k/atomicity.h
* config/cpu/hppa/atomicity.h
* config/cpu/sparc/atomicity.h
* config/cpu/i386/atomicity.h
* config/cpu/i486/atomicity.h
* config/cpu/sh/atomicity.h
* config/cpu/generic/atomicity_mutex/atomicity.h
* config/cpu/generic/atomicity_builtins/atomicity.h
(__exchange_and_add, __atomic_add): Mark throw ().

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146576 138bc75d-0d04-0410-961f-82ee72b054a4

13 files changed:
libstdc++-v3/ChangeLog
libstdc++-v3/config/cpu/cris/atomicity.h
libstdc++-v3/config/cpu/generic/atomicity_builtins/atomicity.h
libstdc++-v3/config/cpu/generic/atomicity_mutex/atomicity.h
libstdc++-v3/config/cpu/hppa/atomicity.h
libstdc++-v3/config/cpu/i386/atomicity.h
libstdc++-v3/config/cpu/i486/atomicity.h
libstdc++-v3/config/cpu/m68k/atomicity.h
libstdc++-v3/config/cpu/sh/atomicity.h
libstdc++-v3/config/cpu/sparc/atomicity.h
libstdc++-v3/config/os/aix/atomicity.h
libstdc++-v3/config/os/irix/atomicity.h
libstdc++-v3/include/ext/atomicity.h

index dcd313b..9de4920 100644 (file)
@@ -1,3 +1,21 @@
+2009-04-21  Jan Hubicka  <jh@suse.cz>
+
+       * include/ext/atomicity.h
+       (__exchange_and_add, __atomic_add): Mark throw ().
+       * config/os/aix/atomicity.h
+       * config/os/aix/atomicity.h
+       * config/os/irix/atomicity.h
+       * config/cpu/cris/atomicity.h
+       * config/cpu/m68k/atomicity.h
+       * config/cpu/hppa/atomicity.h
+       * config/cpu/sparc/atomicity.h
+       * config/cpu/i386/atomicity.h
+       * config/cpu/i486/atomicity.h
+       * config/cpu/sh/atomicity.h
+       * config/cpu/generic/atomicity_mutex/atomicity.h
+       * config/cpu/generic/atomicity_builtins/atomicity.h
+       (__exchange_and_add, __atomic_add): Mark throw ().
+
 2009-04-21  Paolo Carlini  <paolo.carlini@oracle.com>
 
        PR libstdc++/39835
index 37be3a8..9225427 100644 (file)
@@ -27,7 +27,7 @@
 _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
 
   _Atomic_word
-  __exchange_and_add(volatile _Atomic_word* __mem, int __val)
+  __exchange_and_add(volatile _Atomic_word* __mem, int __val) throw ()
   {
     int __tmp;
     _Atomic_word __result;
@@ -80,7 +80,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
   }
 
   void
-  __atomic_add(volatile _Atomic_word* __mem, int __val)
+  __atomic_add(volatile _Atomic_word* __mem, int __val) throw ()
   { __exchange_and_add(__mem, __val); }
 
 _GLIBCXX_END_NAMESPACE
index 9b3b997..ae69ecc 100644 (file)
@@ -34,12 +34,12 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
 
   _Atomic_word 
   __attribute__ ((__unused__))
-  __exchange_and_add(volatile _Atomic_word* __mem, int __val)
+  __exchange_and_add(volatile _Atomic_word* __mem, int __val) throw ()
   { return __sync_fetch_and_add(__mem, __val); }
 
   void
   __attribute__ ((__unused__))
-  __atomic_add(volatile _Atomic_word* __mem, int __val)
+  __atomic_add(volatile _Atomic_word* __mem, int __val) throw ()
   { __sync_fetch_and_add(__mem, __val); }
 
 _GLIBCXX_END_NAMESPACE
index d8a5245..fe3ade8 100644 (file)
@@ -44,7 +44,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
 
   _Atomic_word
   __attribute__ ((__unused__))
-  __exchange_and_add(volatile _Atomic_word* __mem, int __val)
+  __exchange_and_add(volatile _Atomic_word* __mem, int __val) throw ()
   {
     __gnu_cxx::__scoped_lock sentry(get_atomic_mutex());
     _Atomic_word __result;
@@ -55,7 +55,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
 
   void
   __attribute__ ((__unused__))
-  __atomic_add(volatile _Atomic_word* __mem, int __val)
+  __atomic_add(volatile _Atomic_word* __mem, int __val) throw ()
   { __exchange_and_add(__mem, __val); }
 
 _GLIBCXX_END_NAMESPACE
index 6a167e9..cf1ceb0 100644 (file)
@@ -43,7 +43,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
 
   int
   __attribute__ ((__unused__))
-  __exchange_and_add(volatile _Atomic_word* __mem, int __val)
+  __exchange_and_add(volatile _Atomic_word* __mem, int __val) throw ()
   {
     _Atomic_word result;
     int tmp;
@@ -68,7 +68,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
   
   void
   __attribute__ ((__unused__))
-  __atomic_add(volatile _Atomic_word* __mem, int __val)
+  __atomic_add(volatile _Atomic_word* __mem, int __val) throw ()
   {
     int tmp;
     volatile int& lock = _Atomicity_lock<0>::_S_atomicity_lock;
index de2b329..8f76193 100644 (file)
@@ -39,7 +39,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
   
   _Atomic_word 
   __attribute__ ((__unused__))
-  __exchange_and_add(volatile _Atomic_word* __mem, int __val)
+  __exchange_and_add(volatile _Atomic_word* __mem, int __val) throw ()
   {
     register _Atomic_word __result, __tmp = 1;
     
@@ -64,7 +64,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
   
   void
   __attribute__ ((__unused__))
-  __atomic_add(volatile _Atomic_word* __mem, int __val)
+  __atomic_add(volatile _Atomic_word* __mem, int __val) throw ()
   { __exchange_and_add(__mem, __val); }
 
 _GLIBCXX_END_NAMESPACE
index 42f9a8f..d9e68f4 100644 (file)
@@ -28,7 +28,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
 
   _Atomic_word 
   __attribute__ ((__unused__))
-  __exchange_and_add(volatile _Atomic_word* __mem, int __val)
+  __exchange_and_add(volatile _Atomic_word* __mem, int __val) throw ()
   {
     register _Atomic_word __result;
     __asm__ __volatile__ ("lock; xadd{l} {%0,%1|%1,%0}"
@@ -39,7 +39,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
   
   void
   __attribute__ ((__unused__))
-  __atomic_add(volatile _Atomic_word* __mem, int __val)
+  __atomic_add(volatile _Atomic_word* __mem, int __val) throw ()
   {
     __asm__ __volatile__ ("lock; add{l} {%1,%0|%0,%1}"
                          : "=m" (*__mem) : "ir" (__val), "m" (*__mem));
index e6cdbee..5b3692e 100644 (file)
@@ -32,7 +32,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
   // These variants support compare-and-swap.
   _Atomic_word 
   __attribute__ ((__unused__))
-  __exchange_and_add(volatile _Atomic_word* __mem, int __val)
+  __exchange_and_add(volatile _Atomic_word* __mem, int __val) throw ()
   {
     register _Atomic_word __result = *__mem;
     register _Atomic_word __temp;
@@ -50,7 +50,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
   // Disable interrupts, which we can do only from supervisor mode.
   _Atomic_word
   __attribute__ ((__unused__))
-  __exchange_and_add(volatile _Atomic_word* __mem, int __val)
+  __exchange_and_add(volatile _Atomic_word* __mem, int __val) throw ()
   {
     _Atomic_word __result;
     short __level, __tmpsr;
@@ -79,7 +79,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
   
   _Atomic_word 
   __attribute__ ((__unused__))
-  __exchange_and_add(volatile _Atomic_word* __mem, int __val)
+  __exchange_and_add(volatile _Atomic_word* __mem, int __val) throw ()
   {
     _Atomic_word __result;
     
@@ -119,7 +119,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
 
   void
   __attribute__ ((__unused__))
-  __atomic_add(volatile _Atomic_word* __mem, int __val)
+  __atomic_add(volatile _Atomic_word* __mem, int __val) throw ()
   {
     // Careful: using add.l with a memory destination is not
     // architecturally guaranteed to be atomic.
index acd5e87..251d49f 100644 (file)
@@ -33,7 +33,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
 
   _Atomic_word
   __attribute__ ((__unused__))
-  __exchange_and_add (volatile _Atomic_word* __mem, int __val)
+  __exchange_and_add (volatile _Atomic_word* __mem, int __val) throw ()
   {
     _Atomic_word __result;
 
@@ -54,7 +54,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
 
   void
   __attribute__ ((__unused__))
-  __atomic_add (volatile _Atomic_word* __mem, int __val)
+  __atomic_add (volatile _Atomic_word* __mem, int __val) throw ()
   {
     asm("0:\n"
        "\tmovli.l\t@%1,r0\n"
@@ -84,7 +84,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
 
   _Atomic_word
   __attribute__ ((__unused__))
-  __exchange_and_add(volatile _Atomic_word* __mem, int __val)
+  __exchange_and_add(volatile _Atomic_word* __mem, int __val) throw ()
   {
     __gnu_cxx::__scoped_lock sentry(atomic_mutex);
     _Atomic_word __result;
@@ -95,7 +95,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
 
   void
   __attribute__ ((__unused__))
-  __atomic_add(volatile _Atomic_word* __mem, int __val)
+  __atomic_add(volatile _Atomic_word* __mem, int __val) throw ()
   { __exchange_and_add(__mem, __val); }
 
 _GLIBCXX_END_NAMESPACE
index be3b07f..1ead48d 100644 (file)
@@ -30,7 +30,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
 #ifdef __arch64__
   _Atomic_word
   __attribute__ ((__unused__))
-  __exchange_and_add(volatile _Atomic_word* __mem, int __val)
+  __exchange_and_add(volatile _Atomic_word* __mem, int __val) throw ()
   {
     _Atomic_word __tmp1, __tmp2;
     _Atomic_word __val_extended = __val;
@@ -48,7 +48,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
   
   void
   __attribute__ ((__unused__))
-  __atomic_add(volatile _Atomic_word* __mem, int __val)
+  __atomic_add(volatile _Atomic_word* __mem, int __val) throw ()
   {
     _Atomic_word __tmp1, __tmp2;
     _Atomic_word __val_extended = __val;
@@ -78,7 +78,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
   
   _Atomic_word
   __attribute__ ((__unused__))
-  __exchange_and_add(volatile _Atomic_word* __mem, int __val)
+  __exchange_and_add(volatile _Atomic_word* __mem, int __val) throw ()
   {
     _Atomic_word __result, __tmp;
     
@@ -100,7 +100,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
   
   void
   __attribute__ ((__unused__))
-  __atomic_add(volatile _Atomic_word* __mem, int __val)
+  __atomic_add(volatile _Atomic_word* __mem, int __val) throw ()
   {
     _Atomic_word __tmp;
     
index 03718e2..38622b1 100644 (file)
@@ -42,12 +42,12 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
 
   _Atomic_word
   __attribute__ ((__unused__))
-  __exchange_and_add (volatile _Atomic_word* __mem, int __val)
+  __exchange_and_add (volatile _Atomic_word* __mem, int __val) throw ()
   { return ::fetch_and_add(const_cast<atomic_p>(__mem), __val); }
 
   void
   __attribute__ ((__unused__))
-  __atomic_add (volatile _Atomic_word* __mem, int __val)
+  __atomic_add (volatile _Atomic_word* __mem, int __val) throw ()
   { (void) ::fetch_and_add(const_cast<atomic_p>(__mem), __val); }
 
 _GLIBCXX_END_NAMESPACE
index 4771ef4..9048fb2 100644 (file)
 _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
 
   _Atomic_word
-  __exchange_and_add(volatile _Atomic_word* __mem, int __val)
+  __exchange_and_add(volatile _Atomic_word* __mem, int __val) throw ()
   { return (_Atomic_word) test_then_add((unsigned long*) const_cast<_Atomic_word*>(__mem), __val); }
 
   void
-  __atomic_add(volatile _Atomic_word* __mem, int __val)
+  __atomic_add(volatile _Atomic_word* __mem, int __val) throw ()
   { __exchange_and_add(__mem, __val); }
 
 _GLIBCXX_END_NAMESPACE
index bb891e8..5cb419e 100644 (file)
@@ -51,11 +51,11 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
 #else
   _Atomic_word
   __attribute__ ((__unused__))
-  __exchange_and_add(volatile _Atomic_word*, int);
+  __exchange_and_add(volatile _Atomic_word*, int) throw ();
 
   void
   __attribute__ ((__unused__))
-  __atomic_add(volatile _Atomic_word*, int);
+  __atomic_add(volatile _Atomic_word*, int) throw ();
 #endif
 
   static inline _Atomic_word