From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg1-x530.google.com (mail-pg1-x530.google.com [IPv6:2607:f8b0:4864:20::530]) by sourceware.org (Postfix) with ESMTPS id 94AFA3858006 for ; Fri, 17 Sep 2021 09:02:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 94AFA3858006 Received: by mail-pg1-x530.google.com with SMTP id k24so9009084pgh.8 for ; Fri, 17 Sep 2021 02:02:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=FBiXgXOEcf7JwDu9dH5XGovWLaf4bVgW86x2l4US1qw=; b=AU8pvVIExrfaXT1ZZ2tNT6VTAHol16FGx6CGZLA9RL1wCwyle74iVndINdabFfXp38 ujzkMrsX+UfinaHw0KHD8BJ/8I3yotCtXZHi/tRJwueuQZ1JHX51Bv05+3eZqS9SFJPW NM5uwUDRfluATR2hYrpYiKvO/oJNUwn+l6zsZkak+TTyliAyAfLqfzhywMgBtuW03qHq HiewPIAqe4E6Njus64zJ3rRrGMR0Duq7zurd4cUkQazzgPPeBcPkV47biEKcqhu8BrJV ZFmYUdtFYA0ukGLAKOKZeLiL6M8R+kXm47nkXvTW1LC+JtRcuP2mp79j21dAEQXf2p7+ Vk+Q== X-Gm-Message-State: AOAM532nRCxV69PCc1z6Zq2XhoiHT+aBzLU4UidwC+74hmYQyZqaB7RU rniR4Od3CQmPKlu1yfjtOT7XQjOV6dY= X-Google-Smtp-Source: ABdhPJzP/BZPX3l245lRdG19rVIFUGMSEzEMnSW4qgbJM5OHnDRh94dF4fln+XC4OqDFuKur9JtITw== X-Received: by 2002:a62:5fc7:0:b0:438:9e3a:b8c0 with SMTP id t190-20020a625fc7000000b004389e3ab8c0mr9547502pfb.74.1631869359629; Fri, 17 Sep 2021 02:02:39 -0700 (PDT) Received: from squeak.grove.modra.org ([2406:3400:51d:8cc0:2e11:6b55:73c8:8969]) by smtp.gmail.com with ESMTPSA id q11sm5112865pjf.14.2021.09.17.02.02.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Sep 2021 02:02:39 -0700 (PDT) Received: by squeak.grove.modra.org (Postfix, from userid 1000) id 299511140060; Fri, 17 Sep 2021 18:32:36 +0930 (ACST) Date: Fri, 17 Sep 2021 18:32:36 +0930 From: Alan Modra To: Eric Botcazou Cc: binutils@sourceware.org Subject: Re: PR28149, debug info with wrong file association Message-ID: References: <2597510.mvXUDI8C0e@fomalhaut> <4678974.31r3eYUQgx@fomalhaut> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4678974.31r3eYUQgx@fomalhaut> X-Spam-Status: No, score=-3031.3 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 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: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Sep 2021 09:02:42 -0000 On Fri, Sep 17, 2021 at 10:49:20AM +0200, Eric Botcazou wrote: > > A freshly built x86_64-linux mainline gcc compiling this testcase > > > > asm("nop"); > > int main () > > { > > return 0; > > } > > > > ~/build/gcc/gcc/xgcc -B ~/build/gcc/gcc/ -g pr28149.c -v -save-temps > > shows the assembler being invoked with --gdwarf-5 on the following > > Your compiler does not seem to be properly configured, here's mine: I'm sorry, I see I had a mainline gcc built from older sources.. Today's build was commit a6aa2458a92f from the top of the gcc-11 branch. That one does show the problem. I'll build a fresh gcc from mainline which will no doubt behave as you say. -- Alan Modra Australia Development Lab, IBM