From patchwork Wed Sep 8 13:37:59 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jack Howarth X-Patchwork-Id: 64130 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 2615CB6EEB for ; Wed, 8 Sep 2010 23:38:11 +1000 (EST) Received: (qmail 25905 invoked by alias); 8 Sep 2010 13:38:09 -0000 Received: (qmail 25865 invoked by uid 22791); 8 Sep 2010 13:38:08 -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; Wed, 08 Sep 2010 13:38:02 +0000 Received: from bromo.med.uc.edu (localhost.localdomain [127.0.0.1]) by bromo.med.uc.edu (Postfix) with ESMTP id 45CA1B005C; Wed, 8 Sep 2010 09:38:00 -0400 (EDT) Received: (from howarth@localhost) by bromo.med.uc.edu (8.14.3/8.14.3/Submit) id o88Dbxio000641; Wed, 8 Sep 2010 09:37:59 -0400 Date: Wed, 8 Sep 2010 09:37:59 -0400 From: Jack Howarth To: gcc-patches@gcc.gnu.org Cc: mikestump@comcast.net, iains@gcc.gnu.org Subject: [PATCH][PING] Pass --with-dwarf2 on darwin8 Message-ID: <20100908133759.GA634@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 Mike, Can I get a review on... Currently on darwin8 users have to explicitly invoke --with-dwarf2 since it's Xcode defaults to stabs. The attached patch passes --with-dwarf2 on darwin8 in order to assure it builds the standard dwarf2 support. Okay for gcc trunk and gcc 4.5.2? Jack 2010-08-12 Jack Howarth * configure.ac: Pass --with-dwarf2 on darwin8. * configure: Regenerate. Thanks in advance. Jack Index: configure.ac =================================================================== --- configure.ac (revision 163079) +++ configure.ac (working copy) @@ -2506,6 +2506,16 @@ esac fi +# Default to using --with-dwarf2 on certain targets +if test x${with_dwarf2} = x ; then + case "${target}" in + *-*-darwin8*) + with_dwarf2=yes; + extra_host_args="${extra_host_args} --with-dwarf2" + ;; + esac +fi + # hpux11 in 64bit mode has libraries in a weird place. Arrange to find # them automatically. case "${host}" in