From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-il1-x134.google.com (mail-il1-x134.google.com [IPv6:2607:f8b0:4864:20::134]) by sourceware.org (Postfix) with ESMTPS id 5141D3858D37 for ; Tue, 27 Dec 2022 18:23:23 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 5141D3858D37 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-il1-x134.google.com with SMTP id o8so7111459ilo.1 for ; Tue, 27 Dec 2022 10:23:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=7PIKUDEg4WHxp3KKRzS6Jig3yiB4lJ3YOUW/TRl5XjY=; b=jIrB+6JB3b/RJ5pONTUsU6aPVygsOtPLTr0fvOB8cIZRTTvlbW6t4W07LCC2zZti7W vXOMgoXpXmlnRrpL3wk5vL3uRUUlLx1WLh4LaPA7rv5cKsZfQ84FpxD0nWINYXwfEpdj CnKBEQkwGyf1ABy19zsMI4ccwrafyPsZA+HK5K2VIO9Ry8dchrgvNZ8Vyytq7vg2T0jr QZs4Jxdc8SYjv3uyMdp5JXN/zsaZEkpC1oa6ZLQ8bugjo/IzL4slgRWjYedVprbproR1 nU1kp+qxj7l+OXEcXL3IiygU1bXYTez/KAz3I7RX416tj5MRoAFeZ6s0hz7bnq4P+k6V y8FA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references: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=7PIKUDEg4WHxp3KKRzS6Jig3yiB4lJ3YOUW/TRl5XjY=; b=Hbm6RzosWaSI3in9eyyfM2Swum/swCN+lrp++5hw19iqhneyZbhW0ZKJPJz0/zGJ23 gHvaIDUwbRLBXrJaUM3kuIx/aiMQwi7zznRYX/Hxgr4h9nUTR1/T2N/j4st9zXFogRw0 jZ81WGClOxI3jlx7dqXo/qPzwG4jmWlYwDZ2XGIa8JqVAr8bqHSshObQntVqUjMPYPbN Y//Ok55tbLm1C8nNUHnRG/IZnYpLwvxGKULPb/cVO0DgtiHo2Ds1ru1hFth0IHtVaqvD O5kAwN8fdSqd6E73uSNMBNeYPm/blEReQyad2kxNAvd4gGyoIs0b9illJb4RKjBXKp6K Xxmg== X-Gm-Message-State: AFqh2kpYfLr52K3e6515VMqmKzIRIJy8W+4OPCnGcKaa1JgbkmRcxMBk SBVVrZ4JoPjV7eQsPry7Pb92zkVPRao= X-Google-Smtp-Source: AMrXdXtrhQ01Hc4q+rAKka7UfT1LgFLjzoGCi371+GU0KhKPAzT+WDbW0k9aPG8iTAE7o13aG6LnnA== X-Received: by 2002:a92:7f05:0:b0:302:a9ce:8391 with SMTP id a5-20020a927f05000000b00302a9ce8391mr14728800ild.13.1672165402400; Tue, 27 Dec 2022 10:23:22 -0800 (PST) Received: from [172.31.1.18] (65-130-81-249.slkc.qwest.net. [65.130.81.249]) by smtp.gmail.com with ESMTPSA id o28-20020a02cc3c000000b0038a525cb97esm4503321jap.87.2022.12.27.10.23.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 27 Dec 2022 10:23:21 -0800 (PST) Message-ID: Date: Tue, 27 Dec 2022 11:23:19 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.1 Subject: Re: PING: New reg note REG_CFA_NORESTORE Content-Language: en-US To: Andreas Krebbel , gcc-patches@gcc.gnu.org References: From: Jeff Law In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,KAM_SHORT,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP 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 12/13/22 01:55, Andreas Krebbel via Gcc-patches wrote: > Hi, > > I need a way to save registers on the stack and generate proper CFI for it. Since I do not intend to > restore them I needed a way to tell the CFI generation step about it: > > https://gcc.gnu.org/pipermail/gcc-patches/2022-November/606128.html > > Is this ok for mainline? Presumably there's validation bits that want to validate that everything saved eventually gets restored? There's only one call to dwarf2out_frame_debug_cfa_restore, so ISTM that providing an initializer for the argument isn't needed and just creates an overload (and associated code) that isn't needed. Why not just remove the default initializer? Ok with that change or a good reason why you need to keep the initializer. jeff