diff options
author | Jan Hubicka <jh@suse.cz> | 2009-04-22 15:13:55 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2009-04-22 13:13:55 +0000 |
commit | 09f2a1e4400d794035e6c4c6d54463ec731026bb (patch) | |
tree | 6c89dd408e36af775fa4e7cc7cf7859aa12e057a /libstdc++-v3/config/cpu | |
parent | f1eea13514caf90ee0ee14816e52adc7ba73a616 (diff) | |
download | gcc-09f2a1e4400d794035e6c4c6d54463ec731026bb.zip gcc-09f2a1e4400d794035e6c4c6d54463ec731026bb.tar.gz gcc-09f2a1e4400d794035e6c4c6d54463ec731026bb.tar.bz2 |
* 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 ().
From-SVN: r146576
Diffstat (limited to 'libstdc++-v3/config/cpu')
-rw-r--r-- | libstdc++-v3/config/cpu/cris/atomicity.h | 4 | ||||
-rw-r--r-- | libstdc++-v3/config/cpu/generic/atomicity_builtins/atomicity.h | 4 | ||||
-rw-r--r-- | libstdc++-v3/config/cpu/generic/atomicity_mutex/atomicity.h | 4 | ||||
-rw-r--r-- | libstdc++-v3/config/cpu/hppa/atomicity.h | 4 | ||||
-rw-r--r-- | libstdc++-v3/config/cpu/i386/atomicity.h | 4 | ||||
-rw-r--r-- | libstdc++-v3/config/cpu/i486/atomicity.h | 4 | ||||
-rw-r--r-- | libstdc++-v3/config/cpu/m68k/atomicity.h | 8 | ||||
-rw-r--r-- | libstdc++-v3/config/cpu/sh/atomicity.h | 8 | ||||
-rw-r--r-- | libstdc++-v3/config/cpu/sparc/atomicity.h | 8 |
9 files changed, 24 insertions, 24 deletions
diff --git a/libstdc++-v3/config/cpu/cris/atomicity.h b/libstdc++-v3/config/cpu/cris/atomicity.h index 37be3a8..9225427 100644 --- a/libstdc++-v3/config/cpu/cris/atomicity.h +++ b/libstdc++-v3/config/cpu/cris/atomicity.h @@ -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 diff --git a/libstdc++-v3/config/cpu/generic/atomicity_builtins/atomicity.h b/libstdc++-v3/config/cpu/generic/atomicity_builtins/atomicity.h index 9b3b997..ae69ecc 100644 --- a/libstdc++-v3/config/cpu/generic/atomicity_builtins/atomicity.h +++ b/libstdc++-v3/config/cpu/generic/atomicity_builtins/atomicity.h @@ -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 diff --git a/libstdc++-v3/config/cpu/generic/atomicity_mutex/atomicity.h b/libstdc++-v3/config/cpu/generic/atomicity_mutex/atomicity.h index d8a5245..fe3ade8 100644 --- a/libstdc++-v3/config/cpu/generic/atomicity_mutex/atomicity.h +++ b/libstdc++-v3/config/cpu/generic/atomicity_mutex/atomicity.h @@ -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 diff --git a/libstdc++-v3/config/cpu/hppa/atomicity.h b/libstdc++-v3/config/cpu/hppa/atomicity.h index 6a167e9..cf1ceb0 100644 --- a/libstdc++-v3/config/cpu/hppa/atomicity.h +++ b/libstdc++-v3/config/cpu/hppa/atomicity.h @@ -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; diff --git a/libstdc++-v3/config/cpu/i386/atomicity.h b/libstdc++-v3/config/cpu/i386/atomicity.h index de2b329..8f76193 100644 --- a/libstdc++-v3/config/cpu/i386/atomicity.h +++ b/libstdc++-v3/config/cpu/i386/atomicity.h @@ -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 diff --git a/libstdc++-v3/config/cpu/i486/atomicity.h b/libstdc++-v3/config/cpu/i486/atomicity.h index 42f9a8f..d9e68f4 100644 --- a/libstdc++-v3/config/cpu/i486/atomicity.h +++ b/libstdc++-v3/config/cpu/i486/atomicity.h @@ -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)); diff --git a/libstdc++-v3/config/cpu/m68k/atomicity.h b/libstdc++-v3/config/cpu/m68k/atomicity.h index e6cdbee..5b3692e 100644 --- a/libstdc++-v3/config/cpu/m68k/atomicity.h +++ b/libstdc++-v3/config/cpu/m68k/atomicity.h @@ -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. diff --git a/libstdc++-v3/config/cpu/sh/atomicity.h b/libstdc++-v3/config/cpu/sh/atomicity.h index acd5e87..251d49f 100644 --- a/libstdc++-v3/config/cpu/sh/atomicity.h +++ b/libstdc++-v3/config/cpu/sh/atomicity.h @@ -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 diff --git a/libstdc++-v3/config/cpu/sparc/atomicity.h b/libstdc++-v3/config/cpu/sparc/atomicity.h index be3b07f..1ead48d 100644 --- a/libstdc++-v3/config/cpu/sparc/atomicity.h +++ b/libstdc++-v3/config/cpu/sparc/atomicity.h @@ -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; |