From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) by sourceware.org (Postfix) with ESMTPS id 7BBE83858C48; Tue, 11 Jun 2024 12:57:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7BBE83858C48 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=gmx.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmx.de ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 7BBE83858C48 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=212.227.15.19 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1718110626; cv=none; b=oqlWazWeEU8IUh3EjAH3xZL/v771riTieZ6j6A5C3RRu5yVWowIISMB3IjEgQ5PcqCIiXIIVG5GA6JLdCCUZdXDh5mmPjDy/0cC7Mf6bHWX+rMwoiacNzQYimHloMf7bQyjjntrvFyyufbVHTUSwySrSV86nTaea2+Aj6WUk/rU= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1718110626; c=relaxed/simple; bh=25PT0B24PzGEZXMpsl9c53P1nvYTAdrak83XoQqoIQc=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=j+AIwrNV1j9AP553wR8EUXXtHbPMODgDfhp2bR2Sd64byIbvYr+PA+/aSFvV1Ds14hyI405f4yo3Zfjq1lB3j867/9ipxFSLBMdHbAKun2ekG6rBrSypyFaIXR+U2aDrGclW5j9qrM2NQnVSZQFQRjO+Ub9/Oyq9nH13hmt1DJw= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de; s=s31663417; t=1718110623; x=1718715423; i=vehre@gmx.de; bh=knRDdju8vCe8FYt3r9QuYVW54gFCnOIM4wmgw9IeFoo=; h=X-UI-Sender-Class:Date:From:To:Subject:Message-ID:MIME-Version: Content-Type:Content-Transfer-Encoding:cc: content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=mvAM/Ihm3LY9dHpw6CqwT1jNWuFF0+olxnXc+jgUWE2ggdAfDufl48YarC4xDTts cYrKJAsqMA27JhbXJAlS8bv1ybpkZvhnqWlFtgsn/AR8GvGvbAZZK+OJCUUy/o7hJ YQ4YAKePeI0WHTHcmpJminxndB7bJufXDFwdbPa5/YmNJJlTkf6BFarZTOHDpHlKX gGbA99sO0rnWL18zzSGozsdOcCBOvSen6P0ZfNuTxu2Mst9f9a75RZhxPpHGxTqps fVBqWuTlGWKpHSlH2r6pUC67lXTQ3XaeuxnB3Avn9uHAr/hsSZNgMIvgdcf+N/z1w Gciw2uKQiyOcuOY4Qw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from vepi2 ([62.155.205.192]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MQv8n-1s5hCS0stj-00U63k; Tue, 11 Jun 2024 14:57:03 +0200 Date: Tue, 11 Jun 2024 14:37:53 +0200 From: Andre Vehreschild To: GCC-Patches-ML , GCC-Fortran-ML Subject: [Patch, Fortran] 0/3 (PR90076) Setting _vptr correctly. Message-ID: <20240611143753.0632f261@vepi2> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.41; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:YDnKOCh/3bop/bxBtofzRSpHvJ/47A3jbAGZmxu9WgSglBvD91N IBjXKEDWFUxVMmpKTVJ/OTlwpfyWHwYGLruSamG3UiHHIsDAs/Fuh9Fhs3rIOk0Iebjldkj FNNKv4MCMemeNRxUEX3fhbqaqPK8NUTYU3vM2wkVaAqNJAUkrMBpt7G6u5cqmlNaVROPK/P 6yayRlmszTp/41R6J2ZtQ== UI-OutboundReport: notjunk:1;M01:P0:Nbbz0CH2p+E=;oCnorJlKKqgxiH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force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Hi GFortraneers, I like to present a small series of patches. While working of PR90076 and figuring how to best set the _vptr of class types, I discovered several wa= ys of doing this in slightly different ways which are more or less complete (mos= tly rather less). I therefore decided to fix not only the PR90076, but also to approach the issue in a more general way. This results in these three patc= hes: 1/3 Fix PR90076 by applying gfc_set_vptr() where missing. 2/3 Rigorously apply gfc_set_vptr() (and extend it slightly) to reset the = _vptr consistently. 3/3 RFC: First step on assigning to the _vptr. Working on the second part of the patch series, I figured, that at several locations in the fortran compiler we are assigning to class data types and= each location does it differently (more or less complete). Therefore I got the= idea of creating a general function to do all necessary steps for assigning to = a class data type, like for example `gfc_add_modify_class (gfc_se *, tree to= , from)`. The gfc_se is chosen to be able to produce a `pre` and `post` set of statements, while the _data assignment is done in the `expr`= to be able to use gfc_add_modify_class() by the scalarizer. I understand that this is long way to go. Therefore I first like to ask ab= out the general perception of this idea. So I like to hear constructive critic= ism. Could I explain it good enough? Do you think it is worth pursuing? Regards, Andre =2D- Andre Vehreschild * Email: vehre ad gmx dot de