https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101902

Hans-Peter Nilsson <hp at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #2 from Hans-Peter Nilsson <hp at gcc dot gnu.org> ---
(In reply to Jan Hubicka from comment #1)
> Hi,
> i am testing
> 
> diff --git a/gcc/tree-ssa-uninit.c b/gcc/tree-ssa-uninit.c
> index 5d7bc800419..d89ab5423cd 100644
> --- a/gcc/tree-ssa-uninit.c
> +++ b/gcc/tree-ssa-uninit.c
> @@ -641,7 +641,7 @@ maybe_warn_pass_by_reference (gcall *stmt, wlimits
> &wlims)
>       wlims.always_executed = false;
>  
>        /* Ignore args we are not going to read from.  */
> -      if (gimple_call_arg_flags (stmt, argno - 1) & EAF_UNUSED)
> +      if (gimple_call_arg_flags (stmt, argno - 1) & (EAF_UNUSED |
> EAF_NOREAD))
>       continue;
>  
>        tree arg = gimple_call_arg (stmt, argno - 1);

Looks like Jan committed this as e12946df34c997e96c3bc7eb5a0247e889ddb7ea but
forgot to mark the commit-log.  I'm closing this.

Reply via email to