From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by sourceware.org (Postfix) with ESMTPS id 21D013858D28 for ; Sun, 30 Apr 2023 05:10:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 21D013858D28 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-pl1-x629.google.com with SMTP id d9443c01a7336-1a686260adcso15033965ad.0 for ; Sat, 29 Apr 2023 22:10:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682831453; x=1685423453; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=CEkW4RypYVAmeVW89Gej2y/Zym9N2yYNI+vC5lluKKs=; b=WGk2qcKieRBAo8FDwCx2HY4uR5iOFk3JAzklKSkBveoLwUCqbeg5UkXxVcqL1p3hcV p5lyaxAFLWM4G7Q1p1zuHRfijmFO+3dkebnrO0dUgaBHQo8qcNUOSRkwh86Ce29ozd8a 8k163D6f+Wxx/cg4zZIztkAk9sRlCwGkFKwiJOMh19kOAadlrQn2K/gtKzsLUC+qWcwx 6NaMxmNsBO9vrD8r/YJVDpKIGXHuNr+GUMR6pvF9Z+tCt00X7MlTufwjECoIMFfLa7LV Nr0xhwqtq4PWhDwmAaPU/wzFQv7p0O4InyP9fG/Iz1B6VsdRo6qDoijdZNUxCD46w3gK XgDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682831453; x=1685423453; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=CEkW4RypYVAmeVW89Gej2y/Zym9N2yYNI+vC5lluKKs=; b=OEk/9cDWBGDHSs8WPr5V/8t7v2niAgfVztPF3Siv0u0lzQfHBWxXKWk8O7DsPROnqR LUeoN85zFJC5Ow2jir7xSEzpvN5jHRVOyaEDJIfR6BBuIVWneW3fapmjfhkRq9jcONwk U89OfHVK6E0gj+FZuMxAFTsDtcIk4rBHne91BSpFeRi2BU9btFtxZPEikNXHQf2/2PVa QevtDGTeyGs/wfza+CX9nyy5D9uhW/ai8fYQq17ov3NBqANzrr5Ygc07A1zRdqSK7tE7 im/1nfyJOzYqq8MVYXI2u6QJZxL+jHVVXYibwASV83c8w2bynfDdLDPN8tui26XW1X9a Hleg== X-Gm-Message-State: AC+VfDxh+63Y36+27j569kM3qggS4HGkgr38vLsTKyiantNQtxVWiIOE yMwiRgY2WF9Oxby28Fc9D6I= X-Google-Smtp-Source: ACHHUZ4YFzLPVzwiMYS7rcYTbZ8S3pri84f3v54Xs0sqaHiZiV+P6d2wROy4pr2ISKy2XzjkQ1B63Q== X-Received: by 2002:a17:902:db04:b0:1a6:d46b:dfb5 with SMTP id m4-20020a170902db0400b001a6d46bdfb5mr13056116plx.26.1682831452839; Sat, 29 Apr 2023 22:10:52 -0700 (PDT) Received: from ?IPV6:2601:681:8600:13d0::99f? ([2601:681:8600:13d0::99f]) by smtp.gmail.com with ESMTPSA id m21-20020a170902bb9500b001a060007fcbsm5898640pls.213.2023.04.29.22.10.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 29 Apr 2023 22:10:52 -0700 (PDT) Message-ID: <29821cec-b45b-749f-818b-33a7c8ffc267@gmail.com> Date: Sat, 29 Apr 2023 23:10:50 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Subject: Re: [PATCH] apply debug-remap to file names in .su files Content-Language: en-US To: Rasmus Villemoes , gcc-patches@gcc.gnu.org Cc: Rasmus Villemoes References: <20230213192700.2013187-1-rasmus.villemoes@prevas.dk> From: Jeff Law In-Reply-To: <20230213192700.2013187-1-rasmus.villemoes@prevas.dk> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.3 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,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 2/13/23 12:27, Rasmus Villemoes wrote: > The .su files generated with -fstack-usage are arguably debug info. In > order to make builds more reproducible, apply the same remapping logic > to the recorded file names as for when producing the debug info > embedded in the object files. > > To this end, teach print_decl_identifier() a new > PRINT_DECL_REMAP_DEBUG flag and use that from output_stack_usage_1(). > > gcc/ChangeLog: > > * print-tree.h (PRINT_DECL_REMAP_DEBUG): New flag. > * print-tree.cc (print_decl_identifier): Implement it. > * toplev.cc (output_stack_usage_1): Use it. OK for the trunk. jeff