From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12422 invoked by alias); 19 Jun 2011 01:10:21 -0000 Received: (qmail 12406 invoked by uid 22791); 19 Jun 2011 01:10:20 -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 bromo.med.uc.edu (HELO bromo.med.uc.edu) (129.137.3.146) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Sun, 19 Jun 2011 01:10:03 +0000 Received: from bromo.med.uc.edu (localhost.localdomain [127.0.0.1]) by bromo.med.uc.edu (Postfix) with ESMTP id D22C3B005C; Sat, 18 Jun 2011 21:10:02 -0400 (EDT) Received: (from howarth@localhost) by bromo.med.uc.edu (8.14.3/8.14.3/Submit) id p5J1A2MT003562; Sat, 18 Jun 2011 21:10:02 -0400 Date: Sun, 19 Jun 2011 07:57:00 -0000 From: Jack Howarth To: gcc-patches@gcc.gnu.org Cc: mikestump@comcast.net, iains@gcc.gnu.org Subject: [PATCH] backport r175089/r175108 to gcc-4_5-branch Message-ID: <20110619011002.GA3560@bromo.med.uc.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2011-06/txt/msg01406.txt.bz2 Since the common config/mh-darwin file doesn't exist on gcc-4_5-branch, the following patch creates a config/mh-x86-darwin to allow r175089 and r175108 to be effectively backported. This change is worthwhile to provide darwin11 users access to dragonegg (since dragonegg doesn't build on gcc 4.6.x yet). Bootstrap and regression tested on x86_64-apple-darwin11. Okay for gcc-4_5-branch? Jack 2011-06-18 Jack Howarth PR target/49461 * configure.ac: Use mh-x86-darwin. * configure: Regenerate. * config/mh-x86-darwin: Add file and pass -no_pie on BOOT_LDFLAGS for darwin11. Index: configure.ac =================================================================== --- configure.ac (revision 175182) +++ configure.ac (working copy) @@ -1135,6 +1135,9 @@ case "${host}" in tentative_cc="/usr/cygnus/progressive/bin/gcc" host_makefile_frag="config/mh-lynxrs6k" ;; + i[[3456789]]86-*-darwin* | x86_64-*-darwin*) + host_makefile_frag="config/mh-x86-darwin" + ;; powerpc-*-darwin*) host_makefile_frag="config/mh-ppc-darwin" ;; --- /dev/null 2011-06-18 11:57:42.000000000 -0400 +++ config/mh-x86-darwin 2011-06-18 11:52:12.000000000 -0400 @@ -0,0 +1,2 @@ +# Ensure we don't try and use -pie, as it is incompatible with pch. +BOOT_LDFLAGS += `case ${host} in *-*-darwin[1][1-9]*) echo -Wl,-no_pie ;; esac;`