From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by sourceware.org (Postfix) with ESMTPS id D94AC384B12B for ; Wed, 7 Sep 2022 11:57:21 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org D94AC384B12B Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-x634.google.com with SMTP id gh9so7890225ejc.8 for ; Wed, 07 Sep 2022 04:57:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=hRwN2cRvMB8D/xWpSxE7ypr2sZTaxFABOUXRsExrCZE=; b=dH2lDxgTTa85iZ9hUWPZvP8aRO/ixpBqHV9x/4Wk3Iuq9/TughrsRhHSfUlw3qhcBB Rq/ZGqf7HjRTS9qKmbKuw3ulakArwXdHuIbVqqFSBS7w8TN30hVylPAYKpAauLos+mrt R2vZ80ZdUGZIXW2wLNgEPLJch5RBTbc1mepZeG5u0yGjGzgUSg3M7g6cM/9QoayGmyVE vUN5cYRxLK5CYKaFJvkzHdSdGrgNAnzrcg15GC2EeSVwiGA1xJsqlqDfDRJjeQv96cRQ GJshLMvHogiyNrUJUdFfQ3eXEUQGkOyoPFay6qn0gZ4NhiD8nT7jzR9CMvEbHHIavS5o w8CA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=hRwN2cRvMB8D/xWpSxE7ypr2sZTaxFABOUXRsExrCZE=; b=GSjuBxh6Yqk0G+xP/MO1i7EP2rC7D81m2eshwYs6qoJKDvIeY/3WxGKrzctoCVBCPg 122T+WPSAbBH1daMo10rQaeD4TjklSxmsETznrVQh9oHL8Arjg+TCsbst6iOtgigopYB o63CKuXYf82X4eWZUD9yFXjhzmmp8ws1Kx/KS4iIbQ6ukkEXqa1hBPOK3GMl/X/4E5RL qOfWsmOu9RxE8dxmzu/Vo/jOIBn/wUusIkEJz002lx0STtcyWzdmDdLrx49N8EERlEJb rKqK7+lfuIvb/AyNcY7t6WpGMT+C1wW+DWMTbbJ1vmGPTkzHmF0SjWajl8KnYpJFLu11 OqIw== X-Gm-Message-State: ACgBeo02fIbSm5RAacXE5nmq/QK4h8i2A3XkS17fanrF0RqXPRE1Or0X 93KBORZ1Prj9geIfYdXoKJkCfN1qWjU/LlsTLUevrXCP X-Google-Smtp-Source: AA6agR5CS1BZZWY8h7rSf/WunY65TbXqO3SXi4WuDZuV5BQ73dzt6chKazTPC8fJRSzhJtSo+Ufcy1LyISwwMMnJ3qA= X-Received: by 2002:a17:907:3e12:b0:738:fd2f:df80 with SMTP id hp18-20020a1709073e1200b00738fd2fdf80mr2229376ejc.29.1662551840500; Wed, 07 Sep 2022 04:57:20 -0700 (PDT) MIME-Version: 1.0 References: <20220828075030.sasynazl7hbg7ku4@lug-owl.de> <1a195efa-f8f0-61b0-71b8-8d566fa5e9c2@gmail.com> <20220829201135.xubk4zklljx7eaog@lug-owl.de> <20220907105024.t4cjftl6cr3oin2m@lug-owl.de> In-Reply-To: <20220907105024.t4cjftl6cr3oin2m@lug-owl.de> From: Richard Biener Date: Wed, 7 Sep 2022 13:57:07 +0200 Message-ID: Subject: Re: [PATCH] Always default to DWARF2_DEBUG if not specified, warn about deprecated STABS To: Jan-Benedict Glaw Cc: Jeff Law , GCC Patches Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Wed, Sep 7, 2022 at 12:51 PM Jan-Benedict Glaw wrote: > > Hi! > > On Mon, 2022-08-29 22:11:35 +0200, Jan-Benedict Glaw wrote: > > On Sun, 2022-08-28 15:32:53 -0600, Jeff Law via Gcc-patches wrote: > > > On 8/28/2022 1:50 AM, Jan-Benedict Glaw wrote: > > > > On Tue, 2021-09-21 16:25:19 +0200, Richard Biener via Gcc-patches wrote: > > > > > This makes defaults.h choose DWARF2_DEBUG if PREFERRED_DEBUGGING_TYPE > > > > > is not specified by the target and errors out if DWARF DWARF is not supported. > > > > While I think the pdp11 bits arreved, the rest did not (yet). Just > > > > checked my auto-builder logs. When building current HEAD as > > > > > > > > ../gcc/configure --prefix=... --enable-werror-always \ > > > > --enable-languages=all --disable-gcov \ > > > > --disable-shared --disable-threads --without-headers \ > > > > --target=... > > > > make V=1 all-gcc > > > > > > > > ALL of these targets won't build right now: > > [...] > > > Umm, most of those -elf targets do build. See: > > > > > > http://law-sandy.freeddns.org:8080 > > > > Another builder. :) Randomly picking xtensa-elf, you're configuring > > as > > > > + ../../gcc/configure --disable-analyzer --with-system-libunwind > > --with-newlib --without-headers --disable-threads --disable-shared > > --enable-languages=c,c++ > > --prefix=/home/jlaw/jenkins/workspace/xtensa-elf/xtensa-elf-obj/gcc/../../xtensa-elf-installed > > --target=xtensa-elf > > > > I guess the main difference that lets my builds fail might be > > --enable-languages=all (vs. c,c++ in your case.) > > > > Maybe you'd give that a try? (...and I'll trigger a build with just > > c,c++ on my builder.) > > So ... just building for --enable-languages=c,c++ usually works for > the *-elf targets, but I'm interested in building as much code as > possible. Is it expected that with --enable-languages=all, all those > targets will break? Can we have a sane default here, or need the > maintainers decide for any given debug format? It's not expected that they break - when targets do not decide on a default format and they can handle DWARF that is automatically selected. And that shouldn't change whether you enable some language or not. Richard. > > Thanks, > Jan-Benedict > > --