public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-1042] Fix thinko in latest change to setup_one_parameter
@ 2021-05-25 14:52 Eric Botcazou
0 siblings, 0 replies; only message in thread
From: Eric Botcazou @ 2021-05-25 14:52 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:1d3707a52d6b8a3054248b4291719150937db309
commit r12-1042-g1d3707a52d6b8a3054248b4291719150937db309
Author: Eric Botcazou <ebotcazou@adacore.com>
Date: Tue May 25 16:51:05 2021 +0200
Fix thinko in latest change to setup_one_parameter
gcc/
* tree-inline.c (setup_one_parameter): Fix thinko in new condition.
Diff:
---
gcc/tree-inline.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c
index 8f945b88c12..1d13e7f5aca 100644
--- a/gcc/tree-inline.c
+++ b/gcc/tree-inline.c
@@ -3446,7 +3446,7 @@ setup_one_parameter (copy_body_data *id, tree p, tree value, tree fn,
sure that it cannot be modified from another path in the callee. */
if ((is_gimple_min_invariant (value)
|| (DECL_P (value) && TREE_READONLY (value))
- || (auto_var_in_fn_p (value, id->src_fn)
+ || (auto_var_in_fn_p (value, id->dst_fn)
&& !TREE_ADDRESSABLE (value)))
&& useless_type_conversion_p (TREE_TYPE (p), TREE_TYPE (value))
/* We have to be very careful about ADDR_EXPR. Make sure
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-05-25 14:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-25 14:52 [gcc r12-1042] Fix thinko in latest change to setup_one_parameter Eric Botcazou
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).