Move shared sysdeps files from alpha to arm.
authorJoseph Myers <joseph@codesourcery.com>
Sat, 8 Feb 2014 01:17:28 +0000 (01:17 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Sat, 8 Feb 2014 01:17:28 +0000 (01:17 +0000)
This patch prepares for moving arm from ports to libc (see overall
plan at <https://sourceware.org/ml/libc-alpha/2014-01/msg00373.html>
and discussion of ordering starting at
<https://sourceware.org/ml/libc-ports/2014-01/msg00071.html>) by
reversing the #include order between arm and alpha, so that arm can
move early as a test for the general pattern of moving architectures.
MicroBlaze files (that used the same alpha files) were made to include
the files directly from their new locations rather than indirecting.

Tested that disassembly of installed shared libraries for arm is the
same before and after this patch.

* sysdeps/unix/sysv/linux/alpha/msgctl.c: Move to
sysdeps/unix/sysv/linux/arm/msgctl.c and #include that file.
* sysdeps/unix/sysv/linux/alpha/semctl.c: Move to
sysdeps/unix/sysv/linux/arm/semctl.c and #include that file.
* sysdeps/unix/sysv/linux/alpha/shmctl.c: Move to
sysdeps/unix/sysv/linux/arm/shmctl.c and #include that file.

* sysdeps/unix/sysv/linux/arm/msgctl.c: Move from
sysdeps/unix/sysv/linux/alpha/msgctl.c instead of #include of that
file.
* sysdeps/unix/sysv/linux/arm/semctl.c: Move from
sysdeps/unix/sysv/linux/alpha/semctl.c instead of #include of that
file.
* sysdeps/unix/sysv/linux/arm/shmctl.c: Move from
sysdeps/unix/sysv/linux/alpha/shmctl.c instead of #include of that
file.

* sysdeps/unix/sysv/linux/microblaze/msgctl.c: Include
sysdeps/unix/sysv/linux/arm/msgctl.c instead of
sysdeps/unix/sysv/linux/alpha/msgctl.c.
* sysdeps/unix/sysv/linux/microblaze/semctl.c: Include
sysdeps/unix/sysv/linux/arm/semctl.c instead of
sysdeps/unix/sysv/linux/alpha/semctl.c.
* sysdeps/unix/sysv/linux/microblaze/shmctl.c: Include
sysdeps/unix/sysv/linux/arm/shmctl.c instead of
sysdeps/unix/sysv/linux/alpha/shmctl.c.

12 files changed:
ports/ChangeLog.alpha
ports/ChangeLog.arm
ports/ChangeLog.microblaze
ports/sysdeps/unix/sysv/linux/alpha/msgctl.c
ports/sysdeps/unix/sysv/linux/alpha/semctl.c
ports/sysdeps/unix/sysv/linux/alpha/shmctl.c
ports/sysdeps/unix/sysv/linux/arm/msgctl.c
ports/sysdeps/unix/sysv/linux/arm/semctl.c
ports/sysdeps/unix/sysv/linux/arm/shmctl.c
ports/sysdeps/unix/sysv/linux/microblaze/msgctl.c
ports/sysdeps/unix/sysv/linux/microblaze/semctl.c
ports/sysdeps/unix/sysv/linux/microblaze/shmctl.c

index 92be2924d2b64b41a8b3b36361f8e8cd03865d95..5d7944565591dcae502ae08b3326daae1fcf3051 100644 (file)
@@ -1,3 +1,12 @@
+2014-02-08  Joseph Myers  <joseph@codesourcery.com>
+
+       * sysdeps/unix/sysv/linux/alpha/msgctl.c: Move to
+       sysdeps/unix/sysv/linux/arm/msgctl.c and #include that file.
+       * sysdeps/unix/sysv/linux/alpha/semctl.c: Move to
+       sysdeps/unix/sysv/linux/arm/semctl.c and #include that file.
+       * sysdeps/unix/sysv/linux/alpha/shmctl.c: Move to
+       sysdeps/unix/sysv/linux/arm/shmctl.c and #include that file.
+
 2014-01-24  Richard Henderson <rth@redhat.com>
 
         * sysdeps/alpha/fpu/libm-test-ulps: Update.
index 51bb76b992ea348d760d0d6621a521f2a02b02fe..d23a6cca55b894b55ac90d9048bc3b2771138e67 100644 (file)
@@ -1,3 +1,15 @@
+2014-02-08  Joseph Myers  <joseph@codesourcery.com>
+
+       * sysdeps/unix/sysv/linux/arm/msgctl.c: Move from
+       sysdeps/unix/sysv/linux/alpha/msgctl.c instead of #include of that
+       file.
+       * sysdeps/unix/sysv/linux/arm/semctl.c: Move from
+       sysdeps/unix/sysv/linux/alpha/semctl.c instead of #include of that
+       file.
+       * sysdeps/unix/sysv/linux/arm/shmctl.c: Move from
+       sysdeps/unix/sysv/linux/alpha/shmctl.c instead of #include of that
+       file.
+
 2014-01-24  Will Newton  <will.newton@linaro.org>
 
        [BZ #16499]
index 1c5bc996b17e25b71ce1fcf8feb26ff9bb619267..a2a35c6054b435abb7804b08b771061c82863f26 100644 (file)
@@ -1,3 +1,15 @@
+2014-02-08  Joseph Myers  <joseph@codesourcery.com>
+
+       * sysdeps/unix/sysv/linux/microblaze/msgctl.c: Include
+       sysdeps/unix/sysv/linux/arm/msgctl.c instead of
+       sysdeps/unix/sysv/linux/alpha/msgctl.c.
+       * sysdeps/unix/sysv/linux/microblaze/semctl.c: Include
+       sysdeps/unix/sysv/linux/arm/semctl.c instead of
+       sysdeps/unix/sysv/linux/alpha/semctl.c.
+       * sysdeps/unix/sysv/linux/microblaze/shmctl.c: Include
+       sysdeps/unix/sysv/linux/arm/shmctl.c instead of
+       sysdeps/unix/sysv/linux/alpha/shmctl.c.
+
 2014-02-04  David Holsgrove <david.holsgrove@xilinx.com>
 
        * sysdeps/microblaze/libm-test-ulps: Update.
index a0b6cb43725f461f7d840abd2923f45f1420c90e..d65a5b93d67055618e5372d929a43c70b99a7b31 100644 (file)
@@ -1,33 +1 @@
-/* Copyright (C) 1995-2014 Free Software Foundation, Inc.
-   This file is part of the GNU C Library.
-   Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, August 1995.
-
-   The GNU C Library is free software; you can redistribute it and/or
-   modify it under the terms of the GNU Lesser General Public
-   License as published by the Free Software Foundation; either
-   version 2.1 of the License, or (at your option) any later version.
-
-   The GNU C Library is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-   Lesser General Public License for more details.
-
-   You should have received a copy of the GNU Lesser General Public
-   License along with the GNU C Library.  If not, see
-   <http://www.gnu.org/licenses/>.  */
-
-#include <errno.h>
-#include <sys/msg.h>
-#include <ipc_priv.h>
-#include <sysdep.h>
-#include <sys/syscall.h>
-
-
-int
-__new_msgctl (int msqid, int cmd, struct msqid_ds *buf)
-{
-  return INLINE_SYSCALL (msgctl, 3, msqid, cmd | __IPC_64, buf);
-}
-
-#include <shlib-compat.h>
-versioned_symbol (libc, __new_msgctl, msgctl, GLIBC_2_2);
+#include <sysdeps/unix/sysv/linux/arm/msgctl.c>
index a45863bd82a35fec711be982471fc02e9f606894..4cb834ad978c51d9acd0b54a302a8d4959aaad60 100644 (file)
@@ -1,54 +1 @@
-/* Copyright (C) 1995-2014 Free Software Foundation, Inc.
-   This file is part of the GNU C Library.
-   Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, August 1995.
-
-   The GNU C Library is free software; you can redistribute it and/or
-   modify it under the terms of the GNU Lesser General Public
-   License as published by the Free Software Foundation; either
-   version 2.1 of the License, or (at your option) any later version.
-
-   The GNU C Library is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-   Lesser General Public License for more details.
-
-   You should have received a copy of the GNU Lesser General Public
-   License along with the GNU C Library.  If not, see
-   <http://www.gnu.org/licenses/>.  */
-
-#include <errno.h>
-#include <stdarg.h>
-#include <sys/sem.h>
-#include <ipc_priv.h>
-#include <sysdep.h>
-#include <sys/syscall.h>
-
-
-/* Define a `union semun' suitable for Linux here.  */
-union semun
-{
-  int val;                     /* value for SETVAL */
-  struct semid_ds *buf;                /* buffer for IPC_STAT & IPC_SET */
-  unsigned short int *array;   /* array for GETALL & SETALL */
-  struct seminfo *__buf;       /* buffer for IPC_INFO */
-};
-
-int
-__new_semctl (int semid, int semnum, int cmd, ...)
-{
-  union semun arg;
-  va_list ap;
-
-  va_start (ap, cmd);
-
-  /* Get the argument.  */
-  arg = va_arg (ap, union semun);
-
-  va_end (ap);
-
-  return INLINE_SYSCALL (semctl, 4, semid, semnum, cmd | __IPC_64,
-                        arg.array);
-}
-
-#include <shlib-compat.h>
-versioned_symbol (libc, __new_semctl, semctl, GLIBC_2_2);
+#include <sysdeps/unix/sysv/linux/arm/semctl.c>
index eed4c8dcef4c566cb0e30272f89ba6f6106bfd9b..f73ed6f2463b34293f7c0127eae4e36c7eef5bab 100644 (file)
@@ -1,34 +1 @@
-/* Copyright (C) 1995-2014 Free Software Foundation, Inc.
-   This file is part of the GNU C Library.
-   Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, August 1995.
-
-   The GNU C Library is free software; you can redistribute it and/or
-   modify it under the terms of the GNU Lesser General Public
-   License as published by the Free Software Foundation; either
-   version 2.1 of the License, or (at your option) any later version.
-
-   The GNU C Library is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-   Lesser General Public License for more details.
-
-   You should have received a copy of the GNU Lesser General Public
-   License along with the GNU C Library.  If not, see
-   <http://www.gnu.org/licenses/>.  */
-
-#include <errno.h>
-#include <sys/shm.h>
-#include <ipc_priv.h>
-#include <sysdep.h>
-#include <sys/syscall.h>
-#include <bits/wordsize.h>
-
-
-int
-__new_shmctl (int shmid, int cmd, struct shmid_ds *buf)
-{
-  return INLINE_SYSCALL (shmctl, 3, shmid, cmd | __IPC_64, buf);
-}
-
-#include <shlib-compat.h>
-versioned_symbol (libc, __new_shmctl, shmctl, GLIBC_2_2);
+#include <sysdeps/unix/sysv/linux/arm/shmctl.c>
index 38aedadf49e1d52a27f945651052624edaed49c6..a0b6cb43725f461f7d840abd2923f45f1420c90e 100644 (file)
@@ -1 +1,33 @@
-#include <sysdeps/unix/sysv/linux/alpha/msgctl.c>
+/* Copyright (C) 1995-2014 Free Software Foundation, Inc.
+   This file is part of the GNU C Library.
+   Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, August 1995.
+
+   The GNU C Library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Lesser General Public
+   License as published by the Free Software Foundation; either
+   version 2.1 of the License, or (at your option) any later version.
+
+   The GNU C Library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Lesser General Public License for more details.
+
+   You should have received a copy of the GNU Lesser General Public
+   License along with the GNU C Library.  If not, see
+   <http://www.gnu.org/licenses/>.  */
+
+#include <errno.h>
+#include <sys/msg.h>
+#include <ipc_priv.h>
+#include <sysdep.h>
+#include <sys/syscall.h>
+
+
+int
+__new_msgctl (int msqid, int cmd, struct msqid_ds *buf)
+{
+  return INLINE_SYSCALL (msgctl, 3, msqid, cmd | __IPC_64, buf);
+}
+
+#include <shlib-compat.h>
+versioned_symbol (libc, __new_msgctl, msgctl, GLIBC_2_2);
index 145162909ca2511633bb882fb7328a2aaebc45cf..a45863bd82a35fec711be982471fc02e9f606894 100644 (file)
@@ -1 +1,54 @@
-#include <sysdeps/unix/sysv/linux/alpha/semctl.c>
+/* Copyright (C) 1995-2014 Free Software Foundation, Inc.
+   This file is part of the GNU C Library.
+   Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, August 1995.
+
+   The GNU C Library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Lesser General Public
+   License as published by the Free Software Foundation; either
+   version 2.1 of the License, or (at your option) any later version.
+
+   The GNU C Library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Lesser General Public License for more details.
+
+   You should have received a copy of the GNU Lesser General Public
+   License along with the GNU C Library.  If not, see
+   <http://www.gnu.org/licenses/>.  */
+
+#include <errno.h>
+#include <stdarg.h>
+#include <sys/sem.h>
+#include <ipc_priv.h>
+#include <sysdep.h>
+#include <sys/syscall.h>
+
+
+/* Define a `union semun' suitable for Linux here.  */
+union semun
+{
+  int val;                     /* value for SETVAL */
+  struct semid_ds *buf;                /* buffer for IPC_STAT & IPC_SET */
+  unsigned short int *array;   /* array for GETALL & SETALL */
+  struct seminfo *__buf;       /* buffer for IPC_INFO */
+};
+
+int
+__new_semctl (int semid, int semnum, int cmd, ...)
+{
+  union semun arg;
+  va_list ap;
+
+  va_start (ap, cmd);
+
+  /* Get the argument.  */
+  arg = va_arg (ap, union semun);
+
+  va_end (ap);
+
+  return INLINE_SYSCALL (semctl, 4, semid, semnum, cmd | __IPC_64,
+                        arg.array);
+}
+
+#include <shlib-compat.h>
+versioned_symbol (libc, __new_semctl, semctl, GLIBC_2_2);
index c121e99917b275b8f2e36484adba3898cf95d4cc..eed4c8dcef4c566cb0e30272f89ba6f6106bfd9b 100644 (file)
@@ -1 +1,34 @@
-#include <sysdeps/unix/sysv/linux/alpha/shmctl.c>
+/* Copyright (C) 1995-2014 Free Software Foundation, Inc.
+   This file is part of the GNU C Library.
+   Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, August 1995.
+
+   The GNU C Library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Lesser General Public
+   License as published by the Free Software Foundation; either
+   version 2.1 of the License, or (at your option) any later version.
+
+   The GNU C Library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Lesser General Public License for more details.
+
+   You should have received a copy of the GNU Lesser General Public
+   License along with the GNU C Library.  If not, see
+   <http://www.gnu.org/licenses/>.  */
+
+#include <errno.h>
+#include <sys/shm.h>
+#include <ipc_priv.h>
+#include <sysdep.h>
+#include <sys/syscall.h>
+#include <bits/wordsize.h>
+
+
+int
+__new_shmctl (int shmid, int cmd, struct shmid_ds *buf)
+{
+  return INLINE_SYSCALL (shmctl, 3, shmid, cmd | __IPC_64, buf);
+}
+
+#include <shlib-compat.h>
+versioned_symbol (libc, __new_shmctl, shmctl, GLIBC_2_2);
index 38aedadf49e1d52a27f945651052624edaed49c6..d65a5b93d67055618e5372d929a43c70b99a7b31 100644 (file)
@@ -1 +1 @@
-#include <sysdeps/unix/sysv/linux/alpha/msgctl.c>
+#include <sysdeps/unix/sysv/linux/arm/msgctl.c>
index 145162909ca2511633bb882fb7328a2aaebc45cf..4cb834ad978c51d9acd0b54a302a8d4959aaad60 100644 (file)
@@ -1 +1 @@
-#include <sysdeps/unix/sysv/linux/alpha/semctl.c>
+#include <sysdeps/unix/sysv/linux/arm/semctl.c>
index c121e99917b275b8f2e36484adba3898cf95d4cc..f73ed6f2463b34293f7c0127eae4e36c7eef5bab 100644 (file)
@@ -1 +1 @@
-#include <sysdeps/unix/sysv/linux/alpha/shmctl.c>
+#include <sysdeps/unix/sysv/linux/arm/shmctl.c>