From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by sourceware.org (Postfix) with ESMTPS id 320E1385843E for ; Fri, 17 Sep 2021 07:25:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 320E1385843E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com Received: by mail-wm1-x330.google.com with SMTP id c8-20020a7bc008000000b002e6e462e95fso9209830wmb.2 for ; Fri, 17 Sep 2021 00:25:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=e/UKCL+cE8lJXdDd4+lDIMW5p39uVHrEHmQIKJsj7fo=; b=BkInmk0ekCnUxPz3aNjRcLyufe2BIGYSkczqA8V+VlQQVmfqqqKlCh7Qapp2+Y9nay qTuSWdUE9oO6Zc3cv9t70e4Sy2gF4h5FJF/HKfPavyY+TxTJSgtF4XVpnbYlWRU56VVH 4MPt4+PRwhjoYKPctKGshyj7TZ8CXvomzDabRVzkVr9ogwQ7SE2HO94jYWcNnNfZQIjU 8b5djltrk8cj2isEyz3DIppoU5SbZ6Z+DDAm3hPuv3NbvSwCH/syupHr3vL4zvEzsqtm m7P8/16xCBu7GHB75OjzfoCZWUUWbBENgDuQSwqBPNLy5NXdxDlPja28NkdtFGvBOUF6 SPRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=e/UKCL+cE8lJXdDd4+lDIMW5p39uVHrEHmQIKJsj7fo=; b=nTAoQV12Lplts2lqMDzD2tWWpMUMvCDl/1AsOcfwppcwWKxEsZg+v0rbbGNmDMZG7M vpsnRWNKqj/Ru7rB4aTf/5sIoi0hSInHT/bHzfmg4x7ooT6Jqtlv6yM1WTWqnojnlvLQ ETPcFwu46F8LumZadZASelemOLATTY7yEGaIbRunD1kxiXGau/g5/rupAYoBkQDxKA1Z cfItcZc7Cqx/+8YRoYfDW+NZYsSrnIdYUE87q91ZDSdLBVKHHw/H58+3W7LIzjCtKKiG uV75Dtp8sevyrdWg/JNFudp5mc30F6mk+NiL7sjAMwVuAeZcw92vgjOGQTOJ2nyEN3uO b7KA== X-Gm-Message-State: AOAM5303NRXR4wzlqLWSbKxzHqtgFF3wlV6VENeTTSkPiQ2KLDJj9OAW yHgEwrvAzVMMz2CqsWjLqzFeEQ== X-Google-Smtp-Source: ABdhPJxOYrt5LMVHTK9j+tDn8Nw4LUlnta2D8ZE52RersUdU99O092GBSbI6QRZmjCD/ofO0ZMiS9w== X-Received: by 2002:a05:600c:1d29:: with SMTP id l41mr13387844wms.177.1631863550003; Fri, 17 Sep 2021 00:25:50 -0700 (PDT) Received: from fomalhaut.localnet ([2a01:e0a:41b:84f0:cf71:f5e0:b050:bede]) by smtp.gmail.com with ESMTPSA id c135sm9883595wme.6.2021.09.17.00.25.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Sep 2021 00:25:49 -0700 (PDT) From: Eric Botcazou X-Google-Original-From: Eric Botcazou To: Alan Modra Cc: binutils@sourceware.org Subject: Re: PR28149, debug info with wrong file association Date: Fri, 17 Sep 2021 09:25:33 +0200 Message-ID: <2597510.mvXUDI8C0e@fomalhaut> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-6.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, 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 07:25:53 -0000 > gcc-11 and gcc-12 pass -gdwarf-5 to gas, in order to prime gas for > DWARF 5 level debug info. Unfortunately it seems there are cases > where the compiler does not emit a .file or .loc dwarf debug directive > before any machine instructions. (Note that the .file directive > typically emitted as the first line of assembly output doesn't count as > a dwarf debug directive. The dwarf .file has a file number before the > file name string.) That"s no longer true in DWARF 5, as there is always a .file 0 directive now. -- Eric Botcazou