public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-2988] Add EAF_NOREAD check to tree-ssa-uninit
@ 2021-08-18 11:26 Jan Hubicka
  0 siblings, 0 replies; only message in thread
From: Jan Hubicka @ 2021-08-18 11:26 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:e12946df34c997e96c3bc7eb5a0247e889ddb7ea

commit r12-2988-ge12946df34c997e96c3bc7eb5a0247e889ddb7ea
Author: Jan Hubicka <jh@suse.cz>
Date:   Wed Aug 18 13:25:28 2021 +0200

    Add EAF_NOREAD check to tree-ssa-uninit
    
    gcc/ChangeLog:
    
    2021-08-18  Jan Hubicka  <hubicka@ucw.cz>
    
            * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Check also
            EAF_NOREAD.

Diff:
---
 gcc/tree-ssa-uninit.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/tree-ssa-uninit.c b/gcc/tree-ssa-uninit.c
index d5cdffbae8b..ad2cf48819b 100644
--- a/gcc/tree-ssa-uninit.c
+++ b/gcc/tree-ssa-uninit.c
@@ -712,7 +712,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);


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-08-18 11:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-18 11:26 [gcc r12-2988] Add EAF_NOREAD check to tree-ssa-uninit Jan Hubicka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).