From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19352 invoked by alias); 15 Jul 2003 01:35:34 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 19075 invoked from network); 15 Jul 2003 01:35:28 -0000 Received: from unknown (HELO ms-smtp-03.nyroc.rr.com) (24.92.226.153) by sources.redhat.com with SMTP; 15 Jul 2003 01:35:28 -0000 Received: from doctormoo (syr-24-24-18-148.twcny.rr.com [24.24.18.148]) by ms-smtp-03.nyroc.rr.com (8.12.5/8.12.2) with ESMTP id h6F1ZMs4017622; Mon, 14 Jul 2003 21:35:22 -0400 (EDT) Received: from neroden by doctormoo with local (Exim 3.36 #1 (Debian)) id 19cEim-0000Gb-00; Mon, 14 Jul 2003 21:35:12 -0400 Date: Tue, 15 Jul 2003 01:35:00 -0000 To: gcc-patches@gcc.gnu.org, gdb-patches@sources.redhat.com, binutils@sources.redhat.com Subject: [toplevel] Remove unused libc_interface stuff Message-ID: <20030715013512.GA7958@doctormoo> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.4i From: Nathanael Nerode X-SW-Source: 2003-07/txt/msg00277.txt.bz2 I was startled to discover that this wasn't being used anywhere in gcc/ or src/. It's not used in glibc, either. I don't see what the point is any more. Combined bootstrap in progress, just to make sure. I'm sending this out to see if anyone knows of a reason to keep it; otherwise I'll nuke it. * config.if: Remove unused libc_interface determination. Index: config.if =================================================================== RCS file: /cvs/gcc/gcc/config.if,v retrieving revision 1.9 diff -u -r1.9 config.if --- config.if 30 Jan 2003 11:52:51 -0000 1.9 +++ config.if 15 Jul 2003 00:51:37 -0000 @@ -3,7 +3,6 @@ # determine: # # 1. libstcxx_incdir: the interface name for libstdc++. -# 2. libc_interface: the interface name for libc. # # Get the top level src dir. @@ -36,53 +35,3 @@ fi libstdcxx_incdir=c++/${gcc_version} -# The trickiest part is libc_interface. -if [ -z "${libc_interface}" ] -then - case ${target_os} in - *linux*libc1*|*linux*libc5*) - case ${target_alias} in - *alpha*|*powerpc*) - libc_interface=-libc5.9- - ;; - *) - libc_interface=-libc5- - ;; - esac - ;; - *linux*gnu*) - # We have to work harder to figure it out. - if [ ${target_alias} = ${build_alias} ] - then - dummy=if$$ - cat >$dummy.c < -main(argc, argv) - int argc; - char *argv[]; -{ - printf("%d\n", __GLIBC_MINOR__); - return 0; -} -EOF - ${CC-cc} $dummy.c -o $dummy 2>/dev/null - if [ "$?" = 0 ] - then - libc_interface=-libc6.`./$dummy`- - rm -f $dummy.c $dummy - else - # It should never happen. - echo "Cannot find the GNU C library minor version number." >&2 - rm -f $dummy.c $dummy - exit 1 - fi - else - # Cross compiling. Assume glibc 2.1. - libc_interface=-libc6.1- - fi - ;; - *) - libc_interface=- - ;; - esac -fi -- Nathanael Nerode http://home.twcny.rr.com/nerode/neroden/fdl.html