]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Remove _dl_platform_string
authorAndreas Schwab <schwab@suse.de>
Thu, 15 Dec 2016 11:17:19 +0000 (12:17 +0100)
committerAndreas Schwab <schwab@suse.de>
Tue, 14 Mar 2017 16:18:52 +0000 (17:18 +0100)
There are no non-trivial uses of _dl_platform_string.

ChangeLog
sysdeps/alpha/dl-procinfo.h
sysdeps/generic/dl-procinfo.h
sysdeps/i386/dl-procinfo.h
sysdeps/mips/dl-procinfo.h
sysdeps/s390/dl-procinfo.h
sysdeps/sparc/dl-procinfo.h

index 6ca8d7e41de6ba75b55e5332bba71d13119fedb4..3427a680ac1952d47dc79d7d94aa207e417cbdbb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2017-03-14  Andreas Schwab  <schwab@suse.de>
+
+       * sysdeps/generic/dl-procinfo.h (_dl_platform_string): Remove.
+       * sysdeps/alpha/dl-procinfo.h (_dl_platform_string): Remove.
+       (_dl_string_platform): Use GLRO(dl_alpha_platforms) directly.
+       * sysdeps/i386/dl-procinfo.h (_dl_platform_string): Remove.
+       * sysdeps/mips/dl-procinfo.h (_dl_platform_string): Remove.
+       (_dl_string_platform): Use GLRO(dl_mips_platforms) directly.
+       * sysdeps/s390/dl-procinfo.h (_dl_platform_string): Remove.
+       * sysdeps/sparc/dl-procinfo.h (_dl_platform_string): Remove.
+
 2017-03-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
 
        * sysdeps/mach/hurd/send.c (__send): Convert hurdish error code into
index f123a8db0290fcbcf5a2a459c5ca3273b1de15d6..ed7a66ee494e837b01d633e5eca637b8401c5540 100644 (file)
 
 #define _DL_PLATFORMS_COUNT   5
 
-static inline const char *
-__attribute__ ((unused))
-_dl_platform_string (int idx)
-{
-  return GLRO(dl_alpha_platforms)[idx];
-};
-
 static inline int
 __attribute__ ((unused, always_inline))
 _dl_string_platform (const char *str)
@@ -44,7 +37,7 @@ _dl_string_platform (const char *str)
   if (str != NULL)
     for (i = 0; i < _DL_PLATFORMS_COUNT; ++i)
       {
-        if (strcmp (str, _dl_platform_string (i)) == 0)
+        if (strcmp (str, GLRO(dl_alpha_platforms)[i]) == 0)
           return i;
       }
   return -1;
index c70edd849b2c4356473ee5674ad323cab7399f44..9a0ccacc5703b9eb5d392d8c0030fa5be52bbae3 100644 (file)
@@ -26,9 +26,6 @@
 /* There are no hardware capabilities defined.  */
 #define _dl_hwcap_string(idx) ""
 
-/* There are no different platforms defined.  */
-#define _dl_platform_string(idx) ""
-
 /* By default there is no important hardware capability.  */
 #define HWCAP_IMPORTANT (0)
 
index 2f93cad39ca1a2fff96bf93d1f3d6f52bd50aecf..9c38846f0b728250e73edeb3dc0605eac09097b6 100644 (file)
@@ -70,13 +70,6 @@ _dl_hwcap_string (int idx)
   return GLRO(dl_x86_cap_flags)[idx];
 };
 
-static inline const char *
-__attribute__ ((unused))
-_dl_platform_string (int idx)
-{
-  return GLRO(dl_x86_platforms)[idx - _DL_FIRST_PLATFORM];
-};
-
 static inline int
 __attribute__ ((unused, always_inline))
 _dl_string_hwcap (const char *str)
index a0ad27e7117a460b5932a792fcf09ef8f8a87120..9e6d8e5a4020ffde5a30c2b7dc155b3bf75d37b4 100644 (file)
 
 #define _DL_PLATFORMS_COUNT   4
 
-static inline const char *
-__attribute__ ((unused))
-_dl_platform_string (int idx)
-{
-  return GLRO(dl_mips_platforms)[idx];
-};
-
 static inline int
 __attribute__ ((unused, always_inline))
 _dl_string_platform (const char *str)
@@ -44,7 +37,7 @@ _dl_string_platform (const char *str)
   if (str != NULL)
     for (i = 0; i < _DL_PLATFORMS_COUNT; ++i)
       {
-        if (strcmp (str, _dl_platform_string (i)) == 0)
+        if (strcmp (str, GLRO(dl_mips_platforms)[i]) == 0)
           return i;
       }
   return -1;
index 73999737e1e85fa80c3e84506713429522e5382d..c99789629a07d61440f8b9add221118c9b409686 100644 (file)
@@ -66,13 +66,6 @@ _dl_hwcap_string (int idx)
   return GLRO(dl_s390_cap_flags)[idx];
 };
 
-static inline const char *
-__attribute__ ((unused))
-_dl_platform_string (int idx)
-{
-  return GLRO(dl_s390_platforms)[idx - _DL_FIRST_PLATFORM];
-};
-
 static inline int
 __attribute__ ((unused, always_inline))
 _dl_string_hwcap (const char *str)
index 8a5df22fdc9f6852d49e6d37c7d5ac9c1f99d527..456dde6c9e9d8684f24176209f698d655c027261 100644 (file)
@@ -71,9 +71,6 @@ _dl_string_hwcap (const char *str)
 #define HWCAP_IMPORTANT                (HWCAP_IMPORTANT_V9 | HWCAP_SPARC_ULTRA3 \
                                 | HWCAP_SPARC_BLKINIT | HWCAP_SPARC_N2)
 
-/* There are no different platforms defined.  */
-#define _dl_platform_string(idx) ""
-
 /* There're no platforms to filter out.  */
 #define _DL_HWCAP_PLATFORM 0