From patchwork Thu Jun 30 22:34:26 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 102842 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 2E0CBB6F57 for ; Fri, 1 Jul 2011 08:34:49 +1000 (EST) Received: (qmail 2346 invoked by alias); 30 Jun 2011 22:34:45 -0000 Received: (qmail 2061 invoked by uid 22791); 30 Jun 2011 22:34:43 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL, BAYES_00, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 30 Jun 2011 22:34:29 +0000 Received: (qmail 18437 invoked from network); 30 Jun 2011 22:34:28 -0000 Received: from unknown (HELO digraph.polyomino.org.uk) (joseph@127.0.0.2) by mail.codesourcery.com with ESMTPA; 30 Jun 2011 22:34:28 -0000 Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.72) (envelope-from ) id 1QcPoY-0006cs-Vp for gcc-patches@gcc.gnu.org; Thu, 30 Jun 2011 22:34:27 +0000 Date: Thu, 30 Jun 2011 22:34:26 +0000 (UTC) From: "Joseph S. Myers" To: gcc-patches@gcc.gnu.org Subject: Remove config.gcc support for *local* configurations Message-ID: MIME-Version: 1.0 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org config.gcc has special handling of triplets matching "*local*". I don't think this is particularly relevant to how GCC is used and built today; a good GCC port is expected to include many pieces in different places that are not covered by this generic code, and adding a config.gcc stanza is one of the easiest parts of adding a port. Thus, this patch removes that code. Bootstrapped with no regressions on x86_64-unknown-linux-gnu. OK to commit? gcc: 2011-06-30 Joseph Myers * config.gcc (*local*): Remove. * doc/install-old.texi: Don't mention local configurations. libgcc: 2011-06-30 Joseph Myers * config.host (*local*): Remove. Index: libgcc/config.host =================================================================== --- libgcc/config.host (revision 175628) +++ libgcc/config.host (working copy) @@ -222,13 +222,6 @@ esac case ${host} in -# Support site-specific machine types. -*local*) - rest=`echo ${host} | sed -e "s/$cpu_type-//"` - if test -f $srcdir/config/${cpu_type}/t-$rest - then tmake_file=${cpu_type}/t-$rest - fi - ;; alpha*-*-linux*) tmake_file="${tmake_file} alpha/t-crtfm" extra_parts="$extra_parts crtfastmath.o" Index: gcc/doc/install-old.texi =================================================================== --- gcc/doc/install-old.texi (revision 175628) +++ gcc/doc/install-old.texi (working copy) @@ -183,13 +183,3 @@ @noindent Remember that a machine name specifies both the cpu type and the company name. -If you want to install your own homemade configuration files, you can -use @samp{local} as the company name to access them. If you use -configuration @samp{@var{cpu}-local}, the configuration name -without the cpu prefix -is used to form the configuration file names. - -Thus, if you specify @samp{m68k-local}, configuration uses -files @file{m68k.md}, @file{local.h}, @file{m68k.c}, -@file{xm-local.h}, @file{t-local}, and @file{x-local}, all in the -directory @file{config/m68k}. Index: gcc/config.gcc =================================================================== --- gcc/config.gcc (revision 175628) +++ gcc/config.gcc (working copy) @@ -749,17 +749,6 @@ esac case ${target} in -# Support site-specific machine types. -*local*) - rest=`echo ${target} | sed -e "s/$cpu_type-//"` - tm_file=${cpu_type}/$rest.h - if test -f $srcdir/config/${cpu_type}/xm-$rest.h - then xm_file=${cpu_type}/xm-$rest.h - fi - if test -f $srcdir/config/${cpu_type}/t-$rest - then tmake_file=${cpu_type}/t-$rest - fi - ;; alpha*-*-linux*) tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h glibc-stdint.h" extra_options="${extra_options} alpha/elf.opt"