Re: [PATCH] tree-inline: Fix TREE_READONLY of parameter replacements

2021-06-23 Thread Richard Biener
On Wed, 23 Jun 2021, Martin Jambor wrote: > Hi, > > On Wed, Jun 23 2021, Richard Biener wrote: > > On Wed, 23 Jun 2021, Martin Jambor wrote: > > > >> Hi, > >> > >> tree-inline leaves behind VAR_DECLs which are TREE_READONLY (because > >> they are copies of const parameters) but are written to be

Re: [PATCH] tree-inline: Fix TREE_READONLY of parameter replacements

2021-06-23 Thread Martin Jambor
Hi, On Wed, Jun 23 2021, Richard Biener wrote: > On Wed, 23 Jun 2021, Martin Jambor wrote: > >> Hi, >> >> tree-inline leaves behind VAR_DECLs which are TREE_READONLY (because >> they are copies of const parameters) but are written to because they >> need to be initialized. This patch resets the

Re: [PATCH] tree-inline: Fix TREE_READONLY of parameter replacements

2021-06-23 Thread Richard Biener
On Wed, 23 Jun 2021, Martin Jambor wrote: > Hi, > > tree-inline leaves behind VAR_DECLs which are TREE_READONLY (because > they are copies of const parameters) but are written to because they > need to be initialized. This patch resets the flag if any > initialization is performed, regardless of

[PATCH] tree-inline: Fix TREE_READONLY of parameter replacements

2021-06-23 Thread Martin Jambor
Hi, tree-inline leaves behind VAR_DECLs which are TREE_READONLY (because they are copies of const parameters) but are written to because they need to be initialized. This patch resets the flag if any initialization is performed, regardless of if the type needs construction or not. There are othe