From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 96C99385800E for ; Fri, 10 Dec 2021 02:14:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 96C99385800E Received: from mail-oo1-f71.google.com (mail-oo1-f71.google.com [209.85.161.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-277-11BiptPjO5S5Nevr2Y6__w-1; Thu, 09 Dec 2021 21:14:48 -0500 X-MC-Unique: 11BiptPjO5S5Nevr2Y6__w-1 Received: by mail-oo1-f71.google.com with SMTP id v67-20020a4a5a46000000b002c9c5da9902so4473753ooa.16 for ; Thu, 09 Dec 2021 18:14:48 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=2zqWHNLjsRgEtxf4yaA2MAyBPrLC0WcV7qLrYqoHkmE=; b=ufvcskz5dVMj8po2P4VGeHnUXzDOaOg4xh0AW8BtYqdna5a6VqizuE1xyrjUS/tlOm ejxZbFNqfpOx13XTk4rrZoAFG64R3fZXXwqPpAaxMvFkd2loah0DhKMWc5zHWwY1fE3F ns8HNyqmbLak9bnBkNtEymuAjr4Kl1hXgCfN9Zbub0o5DhbgsUgzgzZmHOBddJTr7/QF SRcNKkiYahITTLSgTUfesQa/hEVJcxWiIVQ4mF7Nd9EZLqa0plRK5n1KpMWoBbP9MyGX zwNnBjcoCCWTybdLwDHQhTAaVWPqUM1zPFTdcEXFL3ljUxTBfakK5dldXDXA9JQ9L29w 9Kfw== X-Gm-Message-State: AOAM533O1D/UckjLXVsS95jA9ylylLB/wT7xWEbHPMk4AV8V27uBw8DH SmoE2yyCh2Dk/BYG7kjX36Puiwv8B8R/TeLdtmWJ4iUVs6ubWl1gt9ZZceJtVY/6Fw3uNJcfiq/ DKmQO0UoDLmWyQDmkkAWvR5WXX4/izds= X-Received: by 2002:aca:a941:: with SMTP id s62mr9834610oie.87.1639102488024; Thu, 09 Dec 2021 18:14:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJwvQmFKtku6PZ29p2EaXu7k9Fh/Ln969z6EVMwBntG3CoyyJRhOipPgPO92atHWCPwrVtGd4oajccVha2M3QBo= X-Received: by 2002:aca:a941:: with SMTP id s62mr9834600oie.87.1639102487828; Thu, 09 Dec 2021 18:14:47 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Thomas Rodgers Date: Thu, 9 Dec 2021 18:14:36 -0800 Message-ID: Subject: Re: libstdc++: Make atomic::wait() const [PR102994] To: Jonathan Wakely Cc: "libstdc++" , gcc Patches X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, HTML_MESSAGE, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=unavailable autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: libstdc++@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libstdc++ mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Dec 2021 02:14:52 -0000 Tested uild-x86_64-pc-linux-gnu, pushed to trunk and gcc-11. On Thu, Nov 25, 2021 at 1:24 PM Jonathan Wakely wrote: > On Wed, 24 Nov 2021 at 01:27, Thomas Rodgers wrote: > > > > const qualification was also missing in the free functions for > wait/wait_explicit/notify_one/notify_all. Revised patch attached. > > Please tweak the whitespace in the new test: > > > +test1(const std::atomic &a, char*p) > > The '&' should be on the type not the variable, and there should be a > space before 'p': > > > +test1(const std::atomic& a, char* p) > > OK for trunk and gcc-11 with that tweak, thanks! > >