]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Move bits/atomic.h to atomic-machine.h (bug 14912).
authorJoseph Myers <joseph@codesourcery.com>
Fri, 11 Sep 2015 20:00:19 +0000 (20:00 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Fri, 11 Sep 2015 20:00:19 +0000 (20:00 +0000)
It was noted in
<https://sourceware.org/ml/libc-alpha/2012-09/msg00305.html> that the
bits/*.h naming scheme should only be used for installed headers.
This patch renames bits/atomic.h to atomic-machine.h to follow that
convention.

This is the only change in this series that needs to change the
filename rather than simply removing a directory level (because both
atomic.h and bits/atomic.h exist at present).

Tested for x86_64 (testsuite, and that installed stripped shared
libraries are unchanged by the patch).

[BZ #14912]
* sysdeps/aarch64/bits/atomic.h: Move to ...
* sysdeps/aarch64/atomic-machine.h: ...here.
(_AARCH64_BITS_ATOMIC_H): Rename macro to
_AARCH64_ATOMIC_MACHINE_H.
* sysdeps/alpha/bits/atomic.h: Move to ...
* sysdeps/alpha/atomic-machine.h: ...here.
* sysdeps/arm/bits/atomic.h: Move to ...
* sysdeps/arm/atomic-machine.h: ...here.  Update comments.
* bits/atomic.h: Move to ...
* sysdeps/generic/atomic-machine.h: ...here.
(_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
* sysdeps/i386/bits/atomic.h: Move to ...
* sysdeps/i386/atomic-machine.h: ...here.
* sysdeps/ia64/bits/atomic.h: Move to ...
* sysdeps/ia64/atomic-machine.h: ...here.
* sysdeps/m68k/coldfire/bits/atomic.h: Move to ...
* sysdeps/m68k/coldfire/atomic-machine.h: ...here.
(_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
* sysdeps/m68k/m680x0/m68020/bits/atomic.h: Move to ...
* sysdeps/m68k/m680x0/m68020/atomic-machine.h: ...here.
* sysdeps/microblaze/bits/atomic.h: Move to ...
* sysdeps/microblaze/atomic-machine.h: ...here.
* sysdeps/mips/bits/atomic.h: Move to ...
* sysdeps/mips/atomic-machine.h: ...here.
(_MIPS_BITS_ATOMIC_H): Rename macro to _MIPS_ATOMIC_MACHINE_H.
* sysdeps/powerpc/bits/atomic.h: Move to ...
* sysdeps/powerpc/atomic-machine.h: ...here.  Update comments.
* sysdeps/powerpc/powerpc32/bits/atomic.h: Move to ...
* sysdeps/powerpc/powerpc32/atomic-machine.h: ...here.  Update
comments.  Include <atomic-machine.h> instead of <bits/atomic.h>.
* sysdeps/powerpc/powerpc64/bits/atomic.h: Move to ...
* sysdeps/powerpc/powerpc64/atomic-machine.h: ...here.  Include
<atomic-machine.h> instead of <bits/atomic.h>.
* sysdeps/s390/bits/atomic.h: Move to ...
* sysdeps/s390/atomic-machine.h: ...here.
* sysdeps/sparc/sparc32/bits/atomic.h: Move to ...
* sysdeps/sparc/sparc32/atomic-machine.h: ...here.
(_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
* sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Move to ...
* sysdeps/sparc/sparc32/sparcv9/atomic-machine.h: ...here.
* sysdeps/sparc/sparc64/bits/atomic.h: Move to ...
* sysdeps/sparc/sparc64/atomic-machine.h: ...here.
* sysdeps/tile/bits/atomic.h: Move to ...
* sysdeps/tile/atomic-machine.h: ...here.
* sysdeps/tile/tilegx/bits/atomic.h: Move to ...
* sysdeps/tile/tilegx/atomic-machine.h: ...here.  Include
<sysdeps/tile/atomic-machine.h> instead of
<sysdeps/tile/bits/atomic.h>.
(_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
* sysdeps/tile/tilepro/bits/atomic.h: Move to ...
* sysdeps/tile/tilepro/atomic-machine.h: ...here.  Include
<sysdeps/tile/atomic-machine.h> instead of
<sysdeps/tile/bits/atomic.h>.
(_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
* sysdeps/unix/sysv/linux/arm/bits/atomic.h: Move to ...
* sysdeps/unix/sysv/linux/arm/atomic-machine.h: ...here.  Include
<sysdeps/arm/atomic-machine.h> instead of
<sysdeps/arm/bits/atomic.h>.
* sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Move to ...
* sysdeps/unix/sysv/linux/hppa/atomic-machine.h: ...here.
(_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
* sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Move to ...
* sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h: ...here.
(_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
* sysdeps/unix/sysv/linux/nios2/bits/atomic.h: Move to ...
* sysdeps/unix/sysv/linux/nios2/atomic-machine.h: ...here.
(_NIOS2_BITS_ATOMIC_H): Rename macro to _NIOS2_ATOMIC_MACHINE_H.
* sysdeps/unix/sysv/linux/sh/bits/atomic.h: Move to ...
* sysdeps/unix/sysv/linux/sh/atomic-machine.h: ...here.
* sysdeps/x86_64/bits/atomic.h: Move to ...
* sysdeps/x86_64/atomic-machine.h: ...here.
* include/atomic.h: Include <atomic-machine.h> instead of
<bits/atomic.h>.

29 files changed:
ChangeLog
NEWS
include/atomic.h
sysdeps/aarch64/atomic-machine.h [moved from sysdeps/aarch64/bits/atomic.h with 98% similarity]
sysdeps/alpha/atomic-machine.h [moved from sysdeps/alpha/bits/atomic.h with 100% similarity]
sysdeps/arm/atomic-machine.h [moved from sysdeps/arm/bits/atomic.h with 97% similarity]
sysdeps/generic/atomic-machine.h [moved from bits/atomic.h with 95% similarity]
sysdeps/i386/atomic-machine.h [moved from sysdeps/i386/bits/atomic.h with 100% similarity]
sysdeps/ia64/atomic-machine.h [moved from sysdeps/ia64/bits/atomic.h with 100% similarity]
sysdeps/m68k/coldfire/atomic-machine.h [moved from sysdeps/m68k/coldfire/bits/atomic.h with 97% similarity]
sysdeps/m68k/m680x0/m68020/atomic-machine.h [moved from sysdeps/m68k/m680x0/m68020/bits/atomic.h with 100% similarity]
sysdeps/microblaze/atomic-machine.h [moved from sysdeps/microblaze/bits/atomic.h with 100% similarity]
sysdeps/mips/atomic-machine.h [moved from sysdeps/mips/bits/atomic.h with 99% similarity]
sysdeps/powerpc/atomic-machine.h [moved from sysdeps/powerpc/bits/atomic.h with 98% similarity]
sysdeps/powerpc/powerpc32/atomic-machine.h [moved from sysdeps/powerpc/powerpc32/bits/atomic.h with 98% similarity]
sysdeps/powerpc/powerpc64/atomic-machine.h [moved from sysdeps/powerpc/powerpc64/bits/atomic.h with 99% similarity]
sysdeps/s390/atomic-machine.h [moved from sysdeps/s390/bits/atomic.h with 100% similarity]
sysdeps/sparc/sparc32/atomic-machine.h [moved from sysdeps/sparc/sparc32/bits/atomic.h with 99% similarity]
sysdeps/sparc/sparc32/sparcv9/atomic-machine.h [moved from sysdeps/sparc/sparc32/sparcv9/bits/atomic.h with 100% similarity]
sysdeps/sparc/sparc64/atomic-machine.h [moved from sysdeps/sparc/sparc64/bits/atomic.h with 100% similarity]
sysdeps/tile/atomic-machine.h [moved from sysdeps/tile/bits/atomic.h with 100% similarity]
sysdeps/tile/tilegx/atomic-machine.h [moved from sysdeps/tile/tilegx/bits/atomic.h with 94% similarity]
sysdeps/tile/tilepro/atomic-machine.h [moved from sysdeps/tile/tilepro/bits/atomic.h with 96% similarity]
sysdeps/unix/sysv/linux/arm/atomic-machine.h [moved from sysdeps/unix/sysv/linux/arm/bits/atomic.h with 99% similarity]
sysdeps/unix/sysv/linux/hppa/atomic-machine.h [moved from sysdeps/unix/sysv/linux/hppa/bits/atomic.h with 97% similarity]
sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h [moved from sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h with 98% similarity]
sysdeps/unix/sysv/linux/nios2/atomic-machine.h [moved from sysdeps/unix/sysv/linux/nios2/bits/atomic.h with 96% similarity]
sysdeps/unix/sysv/linux/sh/atomic-machine.h [moved from sysdeps/unix/sysv/linux/sh/bits/atomic.h with 100% similarity]
sysdeps/x86_64/atomic-machine.h [moved from sysdeps/x86_64/bits/atomic.h with 100% similarity]

index f00b27748870d312f107b01b7162b459189af7f9..ca4db618c394a8284ca77348c2532f118a785223 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,80 @@
 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
 
+       [BZ #14912]
+       * sysdeps/aarch64/bits/atomic.h: Move to ...
+       * sysdeps/aarch64/atomic-machine.h: ...here.
+       (_AARCH64_BITS_ATOMIC_H): Rename macro to
+       _AARCH64_ATOMIC_MACHINE_H.
+       * sysdeps/alpha/bits/atomic.h: Move to ...
+       * sysdeps/alpha/atomic-machine.h: ...here.
+       * sysdeps/arm/bits/atomic.h: Move to ...
+       * sysdeps/arm/atomic-machine.h: ...here.  Update comments.
+       * bits/atomic.h: Move to ...
+       * sysdeps/generic/atomic-machine.h: ...here.
+       (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
+       * sysdeps/i386/bits/atomic.h: Move to ...
+       * sysdeps/i386/atomic-machine.h: ...here.
+       * sysdeps/ia64/bits/atomic.h: Move to ...
+       * sysdeps/ia64/atomic-machine.h: ...here.
+       * sysdeps/m68k/coldfire/bits/atomic.h: Move to ...
+       * sysdeps/m68k/coldfire/atomic-machine.h: ...here.
+       (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
+       * sysdeps/m68k/m680x0/m68020/bits/atomic.h: Move to ...
+       * sysdeps/m68k/m680x0/m68020/atomic-machine.h: ...here.
+       * sysdeps/microblaze/bits/atomic.h: Move to ...
+       * sysdeps/microblaze/atomic-machine.h: ...here.
+       * sysdeps/mips/bits/atomic.h: Move to ...
+       * sysdeps/mips/atomic-machine.h: ...here.
+       (_MIPS_BITS_ATOMIC_H): Rename macro to _MIPS_ATOMIC_MACHINE_H.
+       * sysdeps/powerpc/bits/atomic.h: Move to ...
+       * sysdeps/powerpc/atomic-machine.h: ...here.  Update comments.
+       * sysdeps/powerpc/powerpc32/bits/atomic.h: Move to ...
+       * sysdeps/powerpc/powerpc32/atomic-machine.h: ...here.  Update
+       comments.  Include <atomic-machine.h> instead of <bits/atomic.h>.
+       * sysdeps/powerpc/powerpc64/bits/atomic.h: Move to ...
+       * sysdeps/powerpc/powerpc64/atomic-machine.h: ...here.  Include
+       <atomic-machine.h> instead of <bits/atomic.h>.
+       * sysdeps/s390/bits/atomic.h: Move to ...
+       * sysdeps/s390/atomic-machine.h: ...here.
+       * sysdeps/sparc/sparc32/bits/atomic.h: Move to ...
+       * sysdeps/sparc/sparc32/atomic-machine.h: ...here.
+       (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
+       * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Move to ...
+       * sysdeps/sparc/sparc32/sparcv9/atomic-machine.h: ...here.
+       * sysdeps/sparc/sparc64/bits/atomic.h: Move to ...
+       * sysdeps/sparc/sparc64/atomic-machine.h: ...here.
+       * sysdeps/tile/bits/atomic.h: Move to ...
+       * sysdeps/tile/atomic-machine.h: ...here.
+       * sysdeps/tile/tilegx/bits/atomic.h: Move to ...
+       * sysdeps/tile/tilegx/atomic-machine.h: ...here.  Include
+       <sysdeps/tile/atomic-machine.h> instead of
+       <sysdeps/tile/bits/atomic.h>.
+       (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
+       * sysdeps/tile/tilepro/bits/atomic.h: Move to ...
+       * sysdeps/tile/tilepro/atomic-machine.h: ...here.  Include
+       <sysdeps/tile/atomic-machine.h> instead of
+       <sysdeps/tile/bits/atomic.h>.
+       (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
+       * sysdeps/unix/sysv/linux/arm/bits/atomic.h: Move to ...
+       * sysdeps/unix/sysv/linux/arm/atomic-machine.h: ...here.  Include
+       <sysdeps/arm/atomic-machine.h> instead of
+       <sysdeps/arm/bits/atomic.h>.
+       * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Move to ...
+       * sysdeps/unix/sysv/linux/hppa/atomic-machine.h: ...here.
+       (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
+       * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Move to ...
+       * sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h: ...here.
+       (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
+       * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: Move to ...
+       * sysdeps/unix/sysv/linux/nios2/atomic-machine.h: ...here.
+       (_NIOS2_BITS_ATOMIC_H): Rename macro to _NIOS2_ATOMIC_MACHINE_H.
+       * sysdeps/unix/sysv/linux/sh/bits/atomic.h: Move to ...
+       * sysdeps/unix/sysv/linux/sh/atomic-machine.h: ...here.
+       * sysdeps/x86_64/bits/atomic.h: Move to ...
+       * sysdeps/x86_64/atomic-machine.h: ...here.
+       * include/atomic.h: Include <atomic-machine.h> instead of
+       <bits/atomic.h>.
+
        * sysdeps/mips/mips32/libm-test-ulps: Update.
        * sysdeps/mips/mips64/libm-test-ulps: Likewise.
 
diff --git a/NEWS b/NEWS
index 65e706c9da4d48e5544c2a7918683f8e7c1b529b..8b8a0b4c958a1cae5bfb36824d613abc9cf294a7 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -9,11 +9,11 @@ Version 2.23
 
 * The following bugs are resolved with this release:
 
-  2542, 2543, 2558, 2898, 14341, 15786, 16141, 16517, 16519, 16520, 16734,
-  16973, 17787, 17905, 18084, 18086, 18240, 18265, 18370, 18421, 18480,
-  18525, 18610, 18618, 18647, 18661, 18674, 18675, 18681, 18757, 18778,
-  18781, 18787, 18789, 18790, 18795, 18796, 18820, 18823, 18824, 18863,
-  18870, 18873, 18887, 18921, 18952.
+  2542, 2543, 2558, 2898, 14341, 14912, 15786, 16141, 16517, 16519, 16520,
+  16734, 16973, 17787, 17905, 18084, 18086, 18240, 18265, 18370, 18421,
+  18480, 18525, 18610, 18618, 18647, 18661, 18674, 18675, 18681, 18757,
+  18778, 18781, 18787, 18789, 18790, 18795, 18796, 18820, 18823, 18824,
+  18863, 18870, 18873, 18887, 18921, 18952.
 
 * The obsolete header <regexp.h> has been removed.  Programs that require
   this header must be updated to use <regex.h> instead.
index 221bea0ad354a3d2d373ea421519d533f93e1cf4..d492ef2fd1be290b4c9016c67dc6ccf92d21166b 100644 (file)
@@ -47,7 +47,7 @@
 
 #include <stdlib.h>
 
-#include <bits/atomic.h>
+#include <atomic-machine.h>
 
 /* Wrapper macros to call pre_NN_post (mem, ...) where NN is the
    bit width of *MEM.  The calling macro puts parens around MEM
similarity index 98%
rename from sysdeps/aarch64/bits/atomic.h
rename to sysdeps/aarch64/atomic-machine.h
index fdd5eaa517dfb6f43348165fa8ad671f35e628ff..3758dd7b7e18656af7153007a973470d3d1b5da8 100644 (file)
@@ -16,8 +16,8 @@
    License along with the GNU C Library.  If not, see
    <http://www.gnu.org/licenses/>.  */
 
-#ifndef _AARCH64_BITS_ATOMIC_H
-#define _AARCH64_BITS_ATOMIC_H 1
+#ifndef _AARCH64_ATOMIC_MACHINE_H
+#define _AARCH64_ATOMIC_MACHINE_H      1
 
 #include <stdint.h>
 
similarity index 97%
rename from sysdeps/arm/bits/atomic.h
rename to sysdeps/arm/atomic-machine.h
index 772a354d440881d9c85918493e20b440e180b0ea..2a89a73f5bc9ad7c50db0d0054963fb939ddac18 100644 (file)
@@ -44,7 +44,7 @@ void __arm_link_error (void);
 # define atomic_full_barrier() __arm_assisted_full_barrier ()
 #endif
 
-/* An OS-specific bits/atomic.h file will define this macro if
+/* An OS-specific atomic-machine.h file will define this macro if
    the OS can provide something.  If not, we'll fail to build
    with a compiler that doesn't supply the operation.  */
 #ifndef __arm_assisted_full_barrier
@@ -153,7 +153,7 @@ void __arm_link_error (void);
   ({ __arm_link_error (); oldval; })
 #endif
 
-/* An OS-specific bits/atomic.h file will define this macro if
+/* An OS-specific atomic-machine.h file will define this macro if
    the OS can provide something.  If not, we'll fail to build
    with a compiler that doesn't supply the operation.  */
 #ifndef __arm_assisted_compare_and_exchange_val_32_acq
similarity index 95%
rename from bits/atomic.h
rename to sysdeps/generic/atomic-machine.h
index 0a7b9c5a9f32b115bf26904cc904920d9d3decfd..c51f3ef5b076e04ebceb4fc5a3460aef9891f66f 100644 (file)
@@ -16,8 +16,8 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
-#ifndef _BITS_ATOMIC_H
-#define _BITS_ATOMIC_H 1
+#ifndef _ATOMIC_MACHINE_H
+#define _ATOMIC_MACHINE_H      1
 
 /* We have by default no support for atomic operations.  So define
    them non-atomic.  If this is a problem somebody will have to come
@@ -39,4 +39,4 @@
                                                                      \
      *__gmemp == (oldval) ? (*__gmemp = __gnewval, 0) : 1; })
 
-#endif /* bits/atomic.h */
+#endif /* atomic-machine.h */
similarity index 97%
rename from sysdeps/m68k/coldfire/bits/atomic.h
rename to sysdeps/m68k/coldfire/atomic-machine.h
index c09bf188acbcb05a041631d514ef39c7ddd00e96..48899ce5ed541ac4303ad72f34d5c098e07b93ec 100644 (file)
@@ -15,8 +15,8 @@
    License along with the GNU C Library.  If not, see
    <http://www.gnu.org/licenses/>.  */
 
-#ifndef _BITS_ATOMIC_H
-#define _BITS_ATOMIC_H 1
+#ifndef _ATOMIC_MACHINE_H
+#define _ATOMIC_MACHINE_H      1
 
 #include <stdint.h>
 
similarity index 99%
rename from sysdeps/mips/bits/atomic.h
rename to sysdeps/mips/atomic-machine.h
index 375448957cf5aebb6360e83e45716d58c650ed64..6db8fee1d47010071b29bbc3eb82e6ca26917325 100644 (file)
@@ -16,8 +16,8 @@
    License along with the GNU C Library.  If not, see
    <http://www.gnu.org/licenses/>.  */
 
-#ifndef _MIPS_BITS_ATOMIC_H
-#define _MIPS_BITS_ATOMIC_H 1
+#ifndef _MIPS_ATOMIC_MACHINE_H
+#define _MIPS_ATOMIC_MACHINE_H 1
 
 #include <stdint.h>
 #include <inttypes.h>
@@ -500,4 +500,4 @@ typedef uintmax_t uatomic_max_t;
                        ".set pop" : : : "memory")
 #endif /* !__mips16 */
 
-#endif /* bits/atomic.h */
+#endif /* atomic-machine.h */
similarity index 98%
rename from sysdeps/powerpc/bits/atomic.h
rename to sysdeps/powerpc/atomic-machine.h
index 8ca45ee5ee009d5e1d83e00cefcd90f5c1c1183f..a056eb18c41747ebb66d871e97f7d096804ecfb5 100644 (file)
    <http://www.gnu.org/licenses/>.  */
 
 /*
- * Never include sysdeps/powerpc/bits/atomic.h directly.
+ * Never include sysdeps/powerpc/atomic-machine.h directly.
  * Alway use include/atomic.h which will include either
- * sysdeps/powerpc/powerpc32/bits/atomic.h
+ * sysdeps/powerpc/powerpc32/atomic-machine.h
  * or
- * sysdeps/powerpc/powerpc64/bits/atomic.h
+ * sysdeps/powerpc/powerpc64/atomic-machine.h
  * as appropriate and which in turn include this file.
  */
 
similarity index 98%
rename from sysdeps/powerpc/powerpc32/bits/atomic.h
rename to sysdeps/powerpc/powerpc32/atomic-machine.h
index 8cb0627ca97eec69f41700e44d22cc73af860881..9ff70c54d5857ce0f8f7c09689319dffe220dd04 100644 (file)
@@ -40,7 +40,7 @@
  * The 32-bit exchange_bool is different on powerpc64 because the subf
  * does signed 64-bit arithmetic while the lwarx is 32-bit unsigned
  * (a load word and zero (high 32) form).  So powerpc64 has a slightly
- * different version in sysdeps/powerpc/powerpc64/bits/atomic.h.
+ * different version in sysdeps/powerpc/powerpc64/atomic-machine.h.
  */
 #define __arch_compare_and_exchange_bool_32_acq(mem, newval, oldval)         \
 ({                                                                           \
  * Include the rest of the atomic ops macros which are common to both
  * powerpc32 and powerpc64.
  */
-#include_next <bits/atomic.h>
+#include_next <atomic-machine.h>
similarity index 99%
rename from sysdeps/powerpc/powerpc64/bits/atomic.h
rename to sysdeps/powerpc/powerpc64/atomic-machine.h
index 92a2a3df55e25b15246e16dd439ace044f77407d..e1d3e9bb0d9b6eb2eb993bbbef7d01c054864786 100644 (file)
  * Include the rest of the atomic ops macros which are common to both
  * powerpc32 and powerpc64.
  */
-#include_next <bits/atomic.h>
+#include_next <atomic-machine.h>
similarity index 99%
rename from sysdeps/sparc/sparc32/bits/atomic.h
rename to sysdeps/sparc/sparc32/atomic-machine.h
index 4242ba831ab418d2426b514e057e7decc7ab0558..0fb11116355d7b1a9f5df590a736dd17d6a6197d 100644 (file)
@@ -17,8 +17,8 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
-#ifndef _BITS_ATOMIC_H
-#define _BITS_ATOMIC_H 1
+#ifndef _ATOMIC_MACHINE_H
+#define _ATOMIC_MACHINE_H      1
 
 #include <stdint.h>
 
@@ -357,4 +357,4 @@ extern uint64_t _dl_hwcap __attribute__((weak));
 
 #include <sysdep.h>
 
-#endif /* bits/atomic.h */
+#endif /* atomic-machine.h */
similarity index 94%
rename from sysdeps/tile/tilegx/bits/atomic.h
rename to sysdeps/tile/tilegx/atomic-machine.h
index e75efb1c414500cb5feffcf484cd83e246789f8f..1f7805bb88ba11216117249c92c28f571a44ca44 100644 (file)
@@ -16,8 +16,8 @@
    License along with the GNU C Library.  If not, see
    <http://www.gnu.org/licenses/>.  */
 
-#ifndef _BITS_ATOMIC_H
-#define _BITS_ATOMIC_H 1
+#ifndef _ATOMIC_MACHINE_H
+#define _ATOMIC_MACHINE_H      1
 
 #include <arch/spr_def.h>
 
@@ -55,6 +55,6 @@
 #define atomic_decrement_if_positive(mem) \
   __atomic_update (mem, -1, fetchaddgez)
 
-#include <sysdeps/tile/bits/atomic.h>
+#include <sysdeps/tile/atomic-machine.h>
 
-#endif /* bits/atomic.h */
+#endif /* atomic-machine.h */
similarity index 96%
rename from sysdeps/tile/tilepro/bits/atomic.h
rename to sysdeps/tile/tilepro/atomic-machine.h
index e0ef9fb5e73eb45e9297debadfd840e33dfc585f..a99f170394ebc6bb25d3e9550ee77dca0d6daf44 100644 (file)
@@ -16,8 +16,8 @@
    License along with the GNU C Library.  If not, see
    <http://www.gnu.org/licenses/>.  */
 
-#ifndef _BITS_ATOMIC_H
-#define _BITS_ATOMIC_H 1
+#ifndef _ATOMIC_MACHINE_H
+#define _ATOMIC_MACHINE_H      1
 
 #include <asm/unistd.h>
 
@@ -83,6 +83,6 @@ int __atomic_update_32 (volatile int *mem, int mask, int addend)
   ({ __typeof (mask) __att1_v = (mask);                 \
     __atomic_update ((mem), ~__att1_v, __att1_v); })
 
-#include <sysdeps/tile/bits/atomic.h>
+#include <sysdeps/tile/atomic-machine.h>
 
-#endif /* bits/atomic.h */
+#endif /* atomic-machine.h */
similarity index 99%
rename from sysdeps/unix/sysv/linux/arm/bits/atomic.h
rename to sysdeps/unix/sysv/linux/arm/atomic-machine.h
index 17cff546ad24de2fe0fbc89ccd02973758d78ffd..4f5f3f45146d05c5f82157b3ed0a5330d4d3a984 100644 (file)
      (__typeof (oldval)) a_tmp; })
 #endif
 
-#include <sysdeps/arm/bits/atomic.h>
+#include <sysdeps/arm/atomic-machine.h>
similarity index 97%
rename from sysdeps/unix/sysv/linux/hppa/bits/atomic.h
rename to sysdeps/unix/sysv/linux/hppa/atomic-machine.h
index 26b66c51345d624c5d81c0ebe9c05fce837f473e..8fbcb493a743f9d43c676cf115b4754d0e073430 100644 (file)
@@ -25,8 +25,8 @@
 #define ENOSYS 251
 #endif
 
-#ifndef _BITS_ATOMIC_H
-#define _BITS_ATOMIC_H 1
+#ifndef _ATOMIC_MACHINE_H
+#define _ATOMIC_MACHINE_H      1
 
 typedef int8_t atomic8_t;
 typedef uint8_t uatomic8_t;
@@ -100,4 +100,4 @@ typedef uintmax_t uatomic_max_t;
    })
 
 #endif
-/* _BITS_ATOMIC_H */
+/* _ATOMIC_MACHINE_H */
similarity index 98%
rename from sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
rename to sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h
index 16002f15db5ac88c8aedc919557bb7ed1578c748..ee6f8e254afe6255c87e62b6e85ce0f0b169431b 100644 (file)
@@ -16,8 +16,8 @@
    License along with the GNU C Library.  If not, see
    <http://www.gnu.org/licenses/>.  */
 
-#ifndef _BITS_ATOMIC_H
-#define _BITS_ATOMIC_H 1
+#ifndef _ATOMIC_MACHINE_H
+#define _ATOMIC_MACHINE_H      1
 
 #include <stdint.h>
 #include <sysdep.h>
similarity index 96%
rename from sysdeps/unix/sysv/linux/nios2/bits/atomic.h
rename to sysdeps/unix/sysv/linux/nios2/atomic-machine.h
index 2329f7463d2a6d2191e9a2443ab0bc625f90cc0c..ee4e4e3b0a9d1ebb7eca6674973c3a9fb90f9561 100644 (file)
@@ -16,8 +16,8 @@
    License along with the GNU C Library.  If not, see
    <http://www.gnu.org/licenses/>.  */
 
-#ifndef _NIOS2_BITS_ATOMIC_H
-#define _NIOS2_BITS_ATOMIC_H 1
+#ifndef _NIOS2_ATOMIC_MACHINE_H
+#define _NIOS2_ATOMIC_MACHINE_H 1
 
 #include <stdint.h>
 
@@ -89,4 +89,4 @@ typedef uintmax_t uatomic_max_t;
 
 #define atomic_full_barrier()  ({ asm volatile ("sync"); })
 
-#endif /* _NIOS2_BITS_ATOMIC_H */
+#endif /* _NIOS2_ATOMIC_MACHINE_H */