From patchwork Tue Jul 31 22:21:47 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: DJ Delorie X-Patchwork-Id: 174349 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 317E42C008A for ; Wed, 1 Aug 2012 08:22:15 +1000 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1344378136; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:Received:Date:Message-Id:From:To:CC:In-reply-to:Subject: References:Mailing-List:Precedence:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:Sender:Delivered-To; bh=Duu3tF/ wLqgAf8hpCkopAM0oO2E=; b=jfURFBiXhub5UcEKo6zQ50JexwmCQz3lSGuRYu1 AC17IbbYalWfYus1Y7z+AqMkL2fpfd/AfAyxI2xGKlSaC+hE+4GGKTMPtTO1PZxi Kr9Cwoo5atht3eyG7qC/1lv+6DdpVvHY3aVoVKHhq/VShjceEJEeowk7CiU9qu/y WktA= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Received:Received:Received:Date:Message-Id:From:To:CC:In-reply-to:Subject:References:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=CQeNctfs3vwvmEODF7le6iZVfmsF4sAnmw0rSLvCCYifs6sj8ERU3S9ZW9sWSm UqldXkJ8U5z2TX6y+QL/Q0MHIS0bACjp6gvf32OuIq7ZorurShZ8R1DOu1oGcQHu 1AmdUQ8QcXGsXDLCclUaIR4KN7hWuK3h/dut9jegM9Pqk=; Received: (qmail 17185 invoked by alias); 31 Jul 2012 22:22:10 -0000 Received: (qmail 17171 invoked by uid 22791); 31 Jul 2012 22:22:09 -0000 X-SWARE-Spam-Status: No, hits=-6.9 required=5.0 tests=AWL, BAYES_00, KHOP_RCVD_UNTRUST, KHOP_THREADED, RCVD_IN_DNSWL_HI, RCVD_IN_HOSTKARMA_W, SPF_HELO_PASS, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 31 Jul 2012 22:21:49 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q6VMLnWJ002888 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 31 Jul 2012 18:21:49 -0400 Received: from greed.delorie.com (ovpn-113-78.phx2.redhat.com [10.3.113.78]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q6VMLmWF031962 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 31 Jul 2012 18:21:48 -0400 Received: from greed.delorie.com (greed.delorie.com [127.0.0.1]) by greed.delorie.com (8.14.4/8.14.4) with ESMTP id q6VMLlbQ019867; Tue, 31 Jul 2012 18:21:47 -0400 Received: (from dj@localhost) by greed.delorie.com (8.14.4/8.14.4/Submit) id q6VMLlVb019866; Tue, 31 Jul 2012 18:21:47 -0400 Date: Tue, 31 Jul 2012 18:21:47 -0400 Message-Id: <201207312221.q6VMLlVb019866@greed.delorie.com> From: DJ Delorie To: Richard Henderson CC: gcc-patches@gcc.gnu.org In-reply-to: <50185541.5040400@redhat.com> (message from Richard Henderson on Tue, 31 Jul 2012 14:59:29 -0700) Subject: Re: TPF: disable discriminators References: <201207310407.q6V47qIe028859@greed.delorie.com> <501806B6.7020409@redhat.com> <201207312109.q6VL9SCl027555@greed.delorie.com> <50185541.5040400@redhat.com> X-IsSubscribed: yes 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 > TARGET_TPF is always defined. Just use a C if. > Otherwise ok. Thanks, checked in as attached. What about older branches? 4.7 needs this patch, 4.6 needs my original patch. 2012-07-31 DJ Delorie * config/s390/s390.c (s390_option_override): Disable DWARF 3/4 extensions for TPF, unless specifically selected. Index: gcc/config/s390/s390.c =================================================================== --- gcc/config/s390/s390.c (revision 190022) +++ gcc/config/s390/s390.c (working copy) @@ -1651,12 +1651,22 @@ s390_option_override (void) flag_prefetch_loop_arrays = 1; /* Use the alternative scheduling-pressure algorithm by default. */ maybe_set_param_value (PARAM_SCHED_PRESSURE_ALGORITHM, 2, global_options.x_param_values, global_options_set.x_param_values); + + if (TARGET_TPF) + { + /* Don't emit DWARF3/4 unless specifically selected. The TPF + debuggers do not yet support DWARF 3/4. */ + if (!global_options_set.x_dwarf_strict) + dwarf_strict = 1; + if (!global_options_set.x_dwarf_version) + dwarf_version = 2; + } } /* Map for smallest class containing reg regno. */ const enum reg_class regclass_map[FIRST_PSEUDO_REGISTER] = { GENERAL_REGS, ADDR_REGS, ADDR_REGS, ADDR_REGS,