From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qk1-x72c.google.com (mail-qk1-x72c.google.com [IPv6:2607:f8b0:4864:20::72c]) by sourceware.org (Postfix) with ESMTPS id E5AE33858C60 for ; Mon, 13 Sep 2021 13:24:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org E5AE33858C60 Received: by mail-qk1-x72c.google.com with SMTP id bk29so10396233qkb.8 for ; Mon, 13 Sep 2021 06:24:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=rkLTnGgcw8xprNt9812osnGRGu5xWnqxfLKn/6exb74=; b=d5zQov8cNGdd3f4/1gyLu1VhdcW1cijDO+bWSX2PBfbQceUHdbk/LAcDrW42k9vJY7 kbgPUBHhApBn79KbUiU+9IzckN9FWLDz37AKOqQ7Z9WtK99QtLJaO5KP6/95Gt2UKr8h mHYd2zWkx+D7nR25UE+SxzD2+qO12bXyIZcgNP8+D4CLjKHr1EPhsvKBt0E21HS4nNnd LxKYsKeb8Fn7+uQZyQ5OQaEsJy9Vg5Iq2wWTMnp6cbIHgD8EbchuUxRl/AfKLTnqSuYj DEhC+NhWvEvYtoMRqGWTZTrdgQ0UHO7/76CX70IixXFQ0OjLbYGiz4iWZB1TvzMfptlz 1Nzg== X-Gm-Message-State: AOAM5311Q3uUz1xBsA68ObfdTyAqVgNmRanXAsrfi2d6pgS0tadvvE5U KSzRFOe61197ssZ0FQuC1VA= X-Google-Smtp-Source: ABdhPJzsYQG53qv/DcFMZUq7TWVw0o1dgNE5Sn0xWnETEDTSoyhSddHxTkl6T1e5177r3Cve39Js6Q== X-Received: by 2002:a05:620a:1f1:: with SMTP id x17mr10001730qkn.227.1631539496507; Mon, 13 Sep 2021 06:24:56 -0700 (PDT) Received: from [172.31.0.175] (c-98-202-48-222.hsd1.ut.comcast.net. [98.202.48.222]) by smtp.gmail.com with ESMTPSA id j18sm5229952qkl.12.2021.09.13.06.24.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 13 Sep 2021 06:24:56 -0700 (PDT) Subject: Re: [PATCH][v2] Always default to DWARF2_DEBUG if not specified, warn about deprecated STABS To: Richard Biener , gcc-patches@gcc.gnu.org Cc: schwab@linux-m68k.org, dave.anglin@bell.net, ni1d@arrl.net References: <66161527-98n2-3060-49ss-67oro67381nq@fhfr.qr> From: Jeff Law Message-ID: <7c622dea-ac79-869e-23a0-7d363ec50947@gmail.com> Date: Mon, 13 Sep 2021 07:24:52 -0600 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: <66161527-98n2-3060-49ss-67oro67381nq@fhfr.qr> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Sep 2021 13:24:58 -0000 On 9/13/2021 1:31 AM, Richard Biener wrote: > This makes defaults.h choose DWARF2_DEBUG if PREFERRED_DEBUGGING_TYPE > is not specified by the target and NO_DEBUG if DWARF is not supported. > > It also makes us warn when STABS is enabled and removes the corresponding > diagnostic from the Ada frontend. The warnings are pruned from the > testsuite output via prune_gcc_output. > > This leaves the following targets without debug support: > > pdp11-*-* pdp11 is a.out, dwarf support is difficult > m68k*-*-openbsd* it looks like this is a.out as well, at least it does > not pretend to support DWARF > hppa[12]*-*-hpux10* does seem to not support DWARF I would probably argue that hpux10 should just be removed, along with hpux 7-9 if they haven't been already.  It's the epitome of a dead platform. > vax-*-openbsd* seems to be a.out as well, does not support DWARF > > behavior will be like > >> ./cc1 -quiet t.c -g > cc1: warning: target system does not support debug output >> ./cc1 -quiet t.c -gstabs > t.c: warning: STABS debugging information is obsolete and not supported anymore > > that is, -g is unsupported but -gstabs will generate STABS (the above > is for pdp11). It would be nice if maintainers could confirm the above > listed configurations do not support DWARF and weight in whether to > (apart from pdp11) the specific configurations can be obsoleted or > adjusted. It looks like we do not have any openbsd maintainer. > I've discussed the situation for pdp11 with Paul already at some point > but we didn't reach any conclusion besides that it would be nice to > move pdp11 to ELF. > > > 2021-09-10 Richard Biener > > gcc/ > * defaults.h (PREFERRED_DEBUGGING_TYPE): Choose DWARF2_DEBUG > or NO_DEBUG. > * toplev.c (process_options): Warn when STABS debugging is > enabled. > > gcc/ada/ > * gcc-interface/misc.c (gnat_post_options): Do not warn > about DBX_DEBUG use here. > > gcc/testsuite/ > * lib/prune.exp: Prune STABS obsoletion message. OK jeff