]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Remove bitrotten --enable-oldest-abi (bug 6652).
authorJoseph Myers <joseph@codesourcery.com>
Tue, 16 Sep 2014 17:45:03 +0000 (17:45 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Tue, 16 Sep 2014 17:45:03 +0000 (17:45 +0000)
This patch removes the --enable-oldest-abi configure option, which has
long been bitrotten (as reported in bug 6652).  The principle of
removing this option was agreed in the thread starting at
<https://sourceware.org/ml/libc-alpha/2013-07/msg00174.html>.

Tested for x86_64 and x86 that the installed shared libraries other
than libc.so are unchanged by this patch and that libc.so disassembly
and symbol versions are unchanged (debug info changes because of
changed line numbers in csu/version.c).

[BZ #6652]
* Makeconfig (soversions-default-setname): Remove variable.
($(common-objpfx)soversions.i): Don't pass default_setname to
soversions.awk.
* Makerules ($(common-objpfx)abi-versions.h): Don't pass
oldest_abi to abi-versions.awk.
* config.h.in (GLIBC_OLDEST_ABI): Remove macro undefine.
* config.make.in (oldest-abi): Remove variable.
* configure.ac (--enable-oldest-abi): Remove configure option.
* configure: Regenerated.
* csu/version.c (banner) [GLIBC_OLDEST_ABI]: Remove conditional
text.
* scripts/abi-versions.awk: Do not handle oldest_abi variable.
* scripts/soversions.awk: Do not handle default_setname variable.
* sysdeps/mach/hurd/configure.ac: Do not handle oldest_abi
variable.
* sysdeps/mach/hurd/configure: Regenerated.
* sysdeps/unix/sysv/linux/configure.ac: Do not handle oldest_abi
variable.
* sysdeps/unix/sysv/linux/configure: Regenerated.

15 files changed:
ChangeLog
Makeconfig
Makerules
NEWS
config.h.in
config.make.in
configure
configure.ac
csu/version.c
scripts/abi-versions.awk
scripts/soversions.awk
sysdeps/mach/hurd/configure
sysdeps/mach/hurd/configure.ac
sysdeps/unix/sysv/linux/configure
sysdeps/unix/sysv/linux/configure.ac

index 37907ea248cb9e3aa9d0f0517ae02a3973b975f1..0d96ac4e39a1a5ea814d236b10ea8370636e5811 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,26 @@
+2014-09-16  Joseph Myers  <joseph@codesourcery.com>
+
+       [BZ #6652]
+       * Makeconfig (soversions-default-setname): Remove variable.
+       ($(common-objpfx)soversions.i): Don't pass default_setname to
+       soversions.awk.
+       * Makerules ($(common-objpfx)abi-versions.h): Don't pass
+       oldest_abi to abi-versions.awk.
+       * config.h.in (GLIBC_OLDEST_ABI): Remove macro undefine.
+       * config.make.in (oldest-abi): Remove variable.
+       * configure.ac (--enable-oldest-abi): Remove configure option.
+       * configure: Regenerated.
+       * csu/version.c (banner) [GLIBC_OLDEST_ABI]: Remove conditional
+       text.
+       * scripts/abi-versions.awk: Do not handle oldest_abi variable.
+       * scripts/soversions.awk: Do not handle default_setname variable.
+       * sysdeps/mach/hurd/configure.ac: Do not handle oldest_abi
+       variable.
+       * sysdeps/mach/hurd/configure: Regenerated.
+       * sysdeps/unix/sysv/linux/configure.ac: Do not handle oldest_abi
+       variable.
+       * sysdeps/unix/sysv/linux/configure: Regenerated.
+
 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
 
        * elf/Makefile (CFLAGS-interp.c): Remove.
index 07807880fb8abc2828bd3a4736b32eabbd4e4d7a..fad29715b65daf1b3c5a7c6cb1e1421c496c880c 100644 (file)
@@ -958,13 +958,9 @@ $(common-objpfx)shlib-versions.v.i: \
                   $(subdir-srcdirs:=/shlib-versions)) \
        $(..)shlib-versions
 
-soversions-default-setname = $(patsubst %, %,\
-                                       $(filter-out %_default,\
-                                                    $(oldest-abi:%=GLIBC_%)))
 $(common-objpfx)soversions.i: $(..)scripts/soversions.awk \
                              $(common-objpfx)shlib-versions.v
-       $(AWK) -v default_setname='$(soversions-default-setname)' \
-              -f $^ > $@T
+       $(AWK) -f $^ > $@T
        mv -f $@T $@
 $(common-objpfx)soversions.mk: $(common-objpfx)soversions.i $(..)Makeconfig
        (while read which lib number setname; do \
index 695c9ab5979670d9c414de0127ddbe12c6039335..12d01eed7ca37d19843cf69256d96f544e1a5ac7 100644 (file)
--- a/Makerules
+++ b/Makerules
@@ -98,7 +98,7 @@ ifndef avoid-generated
 before-compile := $(common-objpfx)abi-versions.h $(before-compile)
 $(common-objpfx)abi-versions.h: $(..)scripts/abi-versions.awk \
                                $(common-objpfx)Versions.all
-       LC_ALL=C $(AWK) -v oldest_abi=$(oldest-abi) -f $^ > $@T
+       LC_ALL=C $(AWK) -f $^ > $@T
        mv -f $@T $@
 
 $(common-objpfx)%.latest: $(common-objpfx)abi-versions.h
diff --git a/NEWS b/NEWS
index bf8c122499ad891e781de6f781369edb010f79c0..19ece5a79efbea80307d548780fa3e8ee9fdda6c 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -9,7 +9,7 @@ Version 2.21
 
 * The following bugs are resolved with this release:
 
-  17266, 17363, 17370, 17371.
+  6652, 17266, 17363, 17370, 17371.
 \f
 Version 2.20
 
index fcbe8ad808636c8038a56ef77473e5c7391b175f..20c082586d3fca2aa755d2f545f451be3b3f6d1d 100644 (file)
@@ -54,9 +54,6 @@
    directive.  */
 #undef HAVE_ASM_POPSECTION_DIRECTIVE
 
-/* Defined to the oldest ABI we support, like 2.1.  */
-#undef GLIBC_OLDEST_ABI
-
 /* Define if static NSS modules are wanted.  */
 #undef DO_STATIC_NSS
 
index 6bcab8adb17fc589a577b5a4324372052524d099..4a781fdc4a9d7d503c937cfaa62649d5b58a9eb4 100644 (file)
@@ -68,7 +68,6 @@ output-format = @libc_cv_output_format@
 
 static-libgcc = @libc_cv_gcc_static_libgcc@
 
-oldest-abi = @oldest_abi@
 exceptions = @exceptions@
 multi-arch = @multi_arch@
 
index ff5c730a02a478393717aa808a125e0784e0e4ac..28f2b444cd526b28aa22732c05b6a1079ac4deab 100755 (executable)
--- a/configure
+++ b/configure
@@ -653,7 +653,6 @@ force_install
 bindnow
 enable_lock_elision
 hardcoded_path_in_tests
-oldest_abi
 use_default_link
 sysheaders
 with_fp
@@ -737,7 +736,6 @@ with_default_link
 enable_sanity_checks
 enable_shared
 enable_profile
-enable_oldest_abi
 enable_hardcoded_path_in_tests
 enable_stackguard_randomization
 enable_lock_elision
@@ -1390,8 +1388,6 @@ Optional Features:
                           in special situations) [default=yes]
   --enable-shared         build shared library [default=yes if GNU ld]
   --enable-profile        build profiled library [default=no]
-  --enable-oldest-abi=ABI configure the oldest ABI supported [e.g. 2.2]
-                          [default=glibc default]
   --enable-hardcoded-path-in-tests
                           hardcode newly built glibc path in tests
                           [default=no]
@@ -3432,23 +3428,6 @@ else
 fi
 
 
-# Check whether --enable-oldest-abi was given.
-if test "${enable_oldest_abi+set}" = set; then :
-  enableval=$enable_oldest_abi; oldest_abi=$enableval
-else
-  oldest_abi=no
-fi
-
-if test "$oldest_abi" = yes || test "$oldest_abi" = no; then
-  oldest_abi=default
-else
-  cat >>confdefs.h <<_ACEOF
-#define GLIBC_OLDEST_ABI "$oldest_abi"
-_ACEOF
-
-fi
-
-
 # Check whether --enable-hardcoded-path-in-tests was given.
 if test "${enable_hardcoded_path_in_tests+set}" = set; then :
   enableval=$enable_hardcoded_path_in_tests; hardcoded_path_in_tests=$enableval
index 794ffc2f1dec7847d0efbd22a01bd9c22eb6c280..82d0896c31e8216e362c119462dec4e696e1641e 100644 (file)
@@ -151,18 +151,6 @@ AC_ARG_ENABLE([profile],
              [profile=$enableval],
              [profile=no])
 
-AC_ARG_ENABLE([oldest-abi],
-             AC_HELP_STRING([--enable-oldest-abi=ABI],
-                            [configure the oldest ABI supported @<:@e.g. 2.2@:>@ @<:@default=glibc default@:>@]),
-             [oldest_abi=$enableval],
-             [oldest_abi=no])
-if test "$oldest_abi" = yes || test "$oldest_abi" = no; then
-  oldest_abi=default
-else
-  AC_DEFINE_UNQUOTED(GLIBC_OLDEST_ABI, "$oldest_abi")
-fi
-AC_SUBST(oldest_abi)
-
 AC_ARG_ENABLE([hardcoded-path-in-tests],
              AC_HELP_STRING([--enable-hardcoded-path-in-tests],
                             [hardcode newly built glibc path in tests @<:@default=no@:>@]),
index b117b0266b1b9c938153777d68b061b65b5beda8..4238c2fc4a3ddcf701e93db661f0da5987db3ffb 100644 (file)
@@ -34,9 +34,6 @@ Compiled by GNU CC version "__VERSION__".\n"
 #ifdef LIBC_ABIS_STRING
 LIBC_ABIS_STRING
 #endif
-#ifdef GLIBC_OLDEST_ABI
-"The oldest ABI supported: " GLIBC_OLDEST_ABI ".\n"
-#endif
 "For bug reporting instructions, please see:\n\
 "REPORT_BUGS_TO".\n";
 
index 06fa14833cf68847165fc4488c4bb9ccb82438f0..c3697934590c32447a7dadcb8dce492e8f64411c 100644 (file)
@@ -1,9 +1,6 @@
 # Script to generate <abi-versions.h> header file from Versions.all list.
 # See include/shlib-compat.h comments for explanation.
 
-# This script expects the following variables to be defined:
-# oldest_abi           the oldest ABI supported
-
 BEGIN {
   print "/* This file is automatically generated by abi-versions.awk.";
   print "   It defines symbols used by shlib-compat.h, which see.  */";
@@ -31,8 +28,6 @@ $2 == "=" {
   printf "#define ABI_%s_%s\tABI_%s_%s\n", libid, oldid, libid, newid;
   printf "#define VERSION_%s_%s\t%s\n", libid, oldid, new;
 
-  if ("GLIBC_" oldest_abi == old)
-    oldest_abi = "default";
   next;
 }
 
@@ -43,10 +38,6 @@ $2 == "=" {
 
   printf "#define ABI_%s_%s\t%d\t/* support %s */\n", libid, versid, ++n, vers;
   printf "#define VERSION_%s_%s\t%s\n", libid, versid, vers;
-  if ("GLIBC_" oldest_abi == vers)
-    start = 1;
-  if (start == 0 && oldest_abi != "default")
-    --n;
   next;
 }
 
index dbc90590e85e22548078216a1f152901f85451b8..247f061bc37b2a859aa0b2964baf0028c079730b 100644 (file)
@@ -27,7 +27,7 @@ END {
     if (lib in versions)
       set = versions[lib];
     else {
-      set = default_setname;
+      set = "";
       if (ndefault_set >= 1)
        set = default_set[1];
     }
index 21999f708ba5a1de59c153552ddb454f9afb6d86..4248758b30f98739a0fd8fa7f99df2e209845481 100644 (file)
@@ -3,16 +3,6 @@
 $as_echo "#define NO_HIDDEN 1" >>confdefs.h
 
 
-case "$machine" in
-  i386*)
-    # The default oldest ABI is 2.2.6.
-    # We only need a "yes" here if the oldest ABI supported will be < 2.2.6.
-    if test "$oldest_abi" != default && test "$oldest_abi" \< "2.2.6"; then
-      libc_cv_gcc_unwind_find_fde=yes
-    fi
-    ;;
-esac
-
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Hurd header version" >&5
 $as_echo_n "checking Hurd header version... " >&6; }
index 40b0743a174050f307e95c1a434db427de2410a6..b1f16a569e55d5c96ca3ddf83eaa2cfad9737d45 100644 (file)
@@ -3,16 +3,6 @@ GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
 dnl We need this setting because of the need for PLT calls in ld.so.
 AC_DEFINE([NO_HIDDEN])
 
-case "$machine" in
-  i386*)
-    # The default oldest ABI is 2.2.6.
-    # We only need a "yes" here if the oldest ABI supported will be < 2.2.6.
-    if test "$oldest_abi" != default && test "$oldest_abi" \< "2.2.6"; then
-      libc_cv_gcc_unwind_find_fde=yes
-    fi
-    ;;
-esac
-
 AC_CACHE_CHECK(Hurd header version, libc_cv_hurd_version, [dnl
 AC_TRY_COMPILE(dnl
 [#include <hurd/version.h>], [
index 7825ff66ca59d3a14183e6d2ee7b541179953cff..ef9d4256d3e57e638de427590ac06f5808423946 100644 (file)
@@ -148,12 +148,6 @@ fi
 
 
 
-# The result of the above test for the use of the FDE code is invalid if
-# the user overrides the decision about the minimum ABI.
-if test "$oldest_abi" != default && test "2.2.4" \< "$oldest_abi"; then
-  libc_cv_gcc_unwind_find_fde=no
-fi
-
 if test -n "$sysheaders"; then
   CPPFLAGS=$OLD_CPPFLAGS
 fi
index f207c26c77a780e3917a61489c70624a52512f5d..6738e2d653f0f042884a0d73ebf950e9554b7750 100644 (file)
@@ -71,12 +71,6 @@ AC_CHECK_HEADER(linux/fanotify.h,
   [AC_DEFINE(HAVE_LINUX_FANOTIFY_H)], ,
   [/* No default includes.  */])
 
-# The result of the above test for the use of the FDE code is invalid if
-# the user overrides the decision about the minimum ABI.
-if test "$oldest_abi" != default && test "2.2.4" \< "$oldest_abi"; then
-  libc_cv_gcc_unwind_find_fde=no
-fi
-
 if test -n "$sysheaders"; then
   CPPFLAGS=$OLD_CPPFLAGS
 fi