From patchwork Sat Aug 21 03:53:07 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jack Howarth X-Patchwork-Id: 62338 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 5D3ABB6F0D for ; Sat, 21 Aug 2010 13:53:20 +1000 (EST) Received: (qmail 17726 invoked by alias); 21 Aug 2010 03:53:18 -0000 Received: (qmail 17708 invoked by uid 22791); 21 Aug 2010 03:53:16 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL, BAYES_00, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from bromo.med.uc.edu (HELO bromo.med.uc.edu) (129.137.3.146) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Sat, 21 Aug 2010 03:53:10 +0000 Received: from bromo.med.uc.edu (localhost.localdomain [127.0.0.1]) by bromo.med.uc.edu (Postfix) with ESMTP id 2E18EB004B; Fri, 20 Aug 2010 23:53:08 -0400 (EDT) Received: (from howarth@localhost) by bromo.med.uc.edu (8.14.3/8.14.3/Submit) id o7L3r7ad016648; Fri, 20 Aug 2010 23:53:07 -0400 Date: Fri, 20 Aug 2010 23:53:07 -0400 From: Jack Howarth To: gcc-patches@gcc.gnu.org Cc: mikestump@comcast.net, iains@gcc.gnu.org Subject: [PATCH] Depreciate darwin[0-7] Message-ID: <20100821035307.GA16646@bromo.med.uc.edu> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) 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 The attached patch depreciates darwin7 and earlier. These darwin releases only support stabs and haven't been properly maintained in quite some time. The currently supported darwin releases should only include those with functional dwarf2 support which starts with darwin8. Bootstrapped and regression tested on x86_64-apple-darwin10. Okay for gcc trunk after adding any required documentation changes to the patch? Jack 2010-08-20 Jack Howarth * gcc/config.gcc: Add darwin[1-7] and darwin[1-7].* to unsupported target list. Remove *-*-darwin7*, *-*-darwin[0-6]* and nonexistent *-darwin1[0-9]* from powerpc-*-darwin* target case. * gcc/config/rs6000/darwin7.h: Removed. Index: gcc/config.gcc =================================================================== --- gcc/config.gcc (revision 163433) +++ gcc/config.gcc (working copy) @@ -237,6 +237,8 @@ | pdp11-*-bsd \ | sparc-hal-solaris2* \ | thumb-*-* \ + | *-*-darwin[1-7] \ + | *-*-darwin[1-7].* \ | *-*-linux*aout* \ | *-*-linux*coff* \ | *-*-linux*libc1* \ @@ -1950,15 +1952,10 @@ extra_options="${extra_options} rs6000/darwin.opt" extra_parts="crt2.o" case ${target} in - *-darwin1[0-9]* | *-darwin[8-9]*) + *-darwin[8-9]*) tmake_file="${tmake_file} rs6000/t-darwin8" tm_file="${tm_file} rs6000/darwin8.h" ;; - *-darwin7*) - tm_file="${tm_file} rs6000/darwin7.h" - ;; - *-darwin[0-6]*) - ;; esac tmake_file="${tmake_file} t-slibgcc-darwin" lto_binary_reader=lto-macho --- gcc/config/rs6000/darwin7.h 2010-08-15 16:44:06.000000000 -0400 +++ /dev/null 2010-08-20 22:48:49.000000000 -0400 @@ -1,30 +0,0 @@ -/* Target definitions for Darwin 7.x (Mac OS X) systems. - Copyright (C) 2004, 2005, 2007 - Free Software Foundation, Inc. - -This file is part of GCC. - -GCC is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 3, or (at your option) -any later version. - -GCC 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 General Public License for more details. - -You should have received a copy of the GNU General Public License -along with GCC; see the file COPYING3. If not see -. */ - -/* Machine dependent libraries. Include libmx when compiling for - Darwin 7.0 and above, but before libSystem, since the functions are - actually in libSystem but for 7.x compatibility we want them to be - looked for in libmx first. Include libmx by default because otherwise - libstdc++ isn't usable. */ - -#undef LIB_SPEC -#define LIB_SPEC "%{!static:\ - %:version-compare(!< 10.3 mmacosx-version-min= -lmx)\ - -lSystem}"