On Mon, Jan 05, 2026 at 10:56:51AM +0100, Marco Falke wrote:
>         PR tree-optimization/123351
> 
> gcc/ChangeLog:
> 
>       * tree-object-size.cc (object_sizes_set_temp): Separate calls to
>       make_ssa_name to ensure deterministic execution order.
> ---
>  gcc/tree-object-size.cc | 8 +++++---
>  1 file changed, 5 insertions(+), 3 deletions(-)
> 
> diff --git a/gcc/tree-object-size.cc b/gcc/tree-object-size.cc
> index 65bcdd57325..66bb8a87aba 100644
> --- a/gcc/tree-object-size.cc
> +++ b/gcc/tree-object-size.cc
> @@ -322,9 +322,11 @@ object_sizes_set_temp (struct object_size_info *osi, 
> unsigned varno)
>    tree val = object_sizes_get (osi, varno);
>  
>    if (size_initval_p (val, osi->object_size_type))
> -    object_sizes_set (osi, varno,
> -                   make_ssa_name (sizetype),
> -                   make_ssa_name (sizetype));
> +    {
> +      tree s = make_ssa_name (sizetype);
> +      tree w = make_ssa_name (sizetype);

The last 2 arguments of object_sizes_set are val and wholeval,
so I'd use
      val = make_ssa_name (sizetype);
      tree wholeval = make_ssa_name (sizetype);
      object_sizes_set (osi, varno, val, wholeval);
instead.

Ok for trunk with that change.

Do you have commit access?

        Jakub

Reply via email to