public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r11-5823] Fix location info in ipa_param_body_adjustments::modify_call_stmt
@ 2020-12-07 15:27 Bernd Edlinger
0 siblings, 0 replies; only message in thread
From: Bernd Edlinger @ 2020-12-07 15:27 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:92e563d91b012f09da8fd152e934f6b964ae49cb
commit r11-5823-g92e563d91b012f09da8fd152e934f6b964ae49cb
Author: Bernd Edlinger <bernd.edlinger@hotmail.de>
Date: Mon Dec 7 16:00:00 2020 +0100
Fix location info in ipa_param_body_adjustments::modify_call_stmt
Copy the location info from the passed in call stmt
to the newly built gimple call stmt.
2020-12-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
* ipa-param-manipulation.c
(ipa_param_body_adjustments::modify_call_stmt): Set location info.
Diff:
---
gcc/ipa-param-manipulation.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/gcc/ipa-param-manipulation.c b/gcc/ipa-param-manipulation.c
index 2bbea21be2e..9ab4a10096d 100644
--- a/gcc/ipa-param-manipulation.c
+++ b/gcc/ipa-param-manipulation.c
@@ -1681,6 +1681,8 @@ ipa_param_body_adjustments::modify_call_stmt (gcall **stmt_p)
}
}
gcall *new_stmt = gimple_build_call_vec (gimple_call_fn (stmt), vargs);
+ if (gimple_has_location (stmt))
+ gimple_set_location (new_stmt, gimple_location (stmt));
gimple_call_set_chain (new_stmt, gimple_call_chain (stmt));
gimple_call_copy_flags (new_stmt, stmt);
if (tree lhs = gimple_call_lhs (stmt))
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-12-07 15:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-07 15:27 [gcc r11-5823] Fix location info in ipa_param_body_adjustments::modify_call_stmt Bernd Edlinger
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).