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 EABD43858418 for ; Tue, 12 Dec 2023 11:15:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org EABD43858418 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org EABD43858418 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1702379760; cv=none; b=nTZu/3DNw3CU8dttQjKe6FuNnks1J8AhtrItE9/lCR1iSFVowF9XtcDaUMgDuBsDBhrsykYdPwT9OXVRYona9iPthb1Hea1DM+3oYISgyWPGZq19SQB+ISz8FGzr2By+M9V2A+/UKbnU63LucMAfROtiG4ayWjDZdXGFXlYqQPA= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1702379760; c=relaxed/simple; bh=W/ndCm/CxH0/Efd6/1UV33FZSTKTJRMskK3bfgmgx20=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=OXT8wqOVO9Zx4prNToy+8dkwKLqO59ibqzkTkdOieaBvxldMzu4QaZH8vG33kv5wIVN501BI20oMgn/fQthh1qZOZHPpXKbZTHCHzKQC+uozlX+75OvzN1SUw1XL3XNBlZXeFPQv8AZpSypzrRnrsbw7/2pn7RQ9ujpwimFVo4E= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1702379758; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references; bh=w4krrjJNuORvV5+ST+dd8MeLQuBTrwPoEGFHUI+CFX0=; b=S4JcUvLra5GMDM1raDQgQxZcEZA0sX+uVqRuh3d0XsDxDaOsh1ymR5lqKQI0KFp8lZvxzP /fJRqoyEp9ks7DY3YpYiyPrntz5A6jYM8YTyRpBuAC+w0M6JfZ6zCjgUchU2hPZlLPgPFq LKhSsSRZz+q/HSKPdnZbj2TNNjNI7WY= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-433-rW1niADcPHqB_k3FfosukA-1; Tue, 12 Dec 2023 06:15:55 -0500 X-MC-Unique: rW1niADcPHqB_k3FfosukA-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id AB029101E153; Tue, 12 Dec 2023 11:15:54 +0000 (UTC) Received: from tucnak.zalov.cz (unknown [10.39.192.92]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 63EB7C15968; Tue, 12 Dec 2023 11:15:54 +0000 (UTC) Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.17.1/8.17.1) with ESMTPS id 3BCBFpHk1701377 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Tue, 12 Dec 2023 12:15:51 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.17.1/8.17.1/Submit) id 3BCBFoIX1701376; Tue, 12 Dec 2023 12:15:50 +0100 Date: Tue, 12 Dec 2023 12:15:49 +0100 From: Jakub Jelinek To: Alexander Monakov Cc: Jason Merrill , Marek Polacek , Richard Biener , Nathaniel Shead , gcc-patches@gcc.gnu.org Subject: Re: [PATCH] c++: End lifetime of objects in constexpr after destructor call [PR71093] Message-ID: Reply-To: Jakub Jelinek References: <5095B3D3-E545-4827-82BB-F7FD321F0225@suse.de> MIME-Version: 1.0 In-Reply-To: X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.8 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE,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 Tue, Dec 12, 2023 at 02:13:43PM +0300, Alexander Monakov wrote: > > > On Tue, 12 Dec 2023, Jakub Jelinek wrote: > > > On Mon, Dec 11, 2023 at 05:00:50PM -0500, Jason Merrill wrote: > > > In discussion of PR71093 it came up that more clobber_kind options would be > > > useful within the C++ front-end. > > > > > > gcc/ChangeLog: > > > > > > * tree-core.h (enum clobber_kind): Rename CLOBBER_EOL to > > > CLOBBER_STORAGE_END. Add CLOBBER_STORAGE_BEGIN, > > > CLOBBER_OBJECT_BEGIN, CLOBBER_OBJECT_END. > > > * gimple-lower-bitint.cc > > > * gimple-ssa-warn-access.cc > > > * gimplify.cc > > > * tree-inline.cc > > > * tree-ssa-ccp.cc: Adjust for rename. > > Doesn't build_clobber_this in the C++ front-end need to be adjusted too? > I think it is used to place clobbers at start of the ctor (should be > CLOBBER_OBJECT_BEGIN in the new nomenclature) and end of the dtor (i.e. > CLOBBER_OBJECT_END). You're right. Jakub