From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by sourceware.org (Postfix) with ESMTPS id 3789D3858C36 for ; Tue, 24 Jan 2023 13:52:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3789D3858C36 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=jguk.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=jguk.org Received: by mail-wm1-x331.google.com with SMTP id f12-20020a7bc8cc000000b003daf6b2f9b9so12863493wml.3 for ; Tue, 24 Jan 2023 05:52:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jguk.org; s=google; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:from:user-agent:mime-version:date:message-id:from:to :cc:subject:date:message-id:reply-to; bh=7c2mDz2sokrUGvsZ5piw1e9gTX2NdPtnoSLNtulUQZE=; b=GE4XK0a8NNg38lGtu4Axhwf8oe2Ce4zTji5RPZQPybk83AVpEEXeTf7KaMM1y6kKlk d9hNFQjde6a+hEDUkqhs7kldypYO0LfW1e+2BdOlGrG9AoNet78PyJgf5HAuir+OyEb+ IFmE4kWN/KEsuwVBrbVMrrt0QxKUjCorCbGSf/ySiMxwvWpwJJGEwP0N9dIs1tYPLYfT BUfe71hciI/AynGZmtb1XbbFoOj9W0e0OgG8r22ZG9LTXmNzkO9dnt27Ukph9tRvAaSl wa+butTl3RZTbnHIPRCj/mXSOYg8sK98ZJgJ1MmlBRR9yt7rBSoPTWe3RiqLaknOEBe/ LEIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:from:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=7c2mDz2sokrUGvsZ5piw1e9gTX2NdPtnoSLNtulUQZE=; b=eIi1o7e9dguBtbErkmN5zel/lCqIUtT/x4F//IXiGTFyW+bR8fEN/f0nbX+1k2cab9 d2mPBAgcEpzBqBbDoUOhvpUXZApFjFp1h/z8kKlsD73yFcdCVW32VyZx3N3iBy6FP+0Z /tBi1Er2Q272p4rip1mPyjtLWzBJTaKVmmMxyLEijs3hmWhW27cT95Oun4JksBq3pUiU TfJDDgUEAyHSqHPMSGmavxF05Z52mo/1LbvKU/7doXhgE50X7q++XDcRMVGtA3mZR/J+ GzNVe6SDRMXY/z6iYZZ9UJOpS/ZEdO2JemFJpiFq4KZIajnkZxhnVOAimvSr8XSwDahw do7A== X-Gm-Message-State: AFqh2kr362g1UQrQssrYU6T45dC3QRIRtx96ZpnbeEc/eDZWstrgU0kc +kP3kW7OHzYXGe1AtPhn7OOv5w== X-Google-Smtp-Source: AMrXdXua1XyS6MB81VBKuoDeqbDamfmGeTFekUGxXfEBPTi63wjwubljR58nXXMniAShvBjZozxs/A== X-Received: by 2002:a1c:f307:0:b0:3d2:3f55:f757 with SMTP id q7-20020a1cf307000000b003d23f55f757mr27835738wmq.20.1674568371989; Tue, 24 Jan 2023 05:52:51 -0800 (PST) Received: from [192.168.0.12] (cpc87345-slou4-2-0-cust172.17-4.cable.virginm.net. [81.101.252.173]) by smtp.gmail.com with ESMTPSA id c3-20020a1c3503000000b003dc0b0e1e47sm2875948wma.48.2023.01.24.05.52.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 24 Jan 2023 05:52:51 -0800 (PST) Message-ID: <0e2290f2-6d87-b4cb-1853-be54c7a45d08@jguk.org> Date: Tue, 24 Jan 2023 13:52:51 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 From: Jonny Grant Subject: Re: Avoiding stack buffer clear being optimised out To: Jonathan Wakely Cc: gcc-help References: <4366aeb5-7fdb-6fa4-b0f5-ebe74c1d4fb2@jguk.org> <68c69b5a-e6e7-7021-5f98-37ba8f3c49eb@jguk.org> Content-Language: en-GB In-Reply-To: <68c69b5a-e6e7-7021-5f98-37ba8f3c49eb@jguk.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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: Probably other functions be "compiled out" like memset() is, would memcpy() be compiled out? Jonny