public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/114707] New: Mark TARGET_EXPRs for function arguments eliding @ 2024-04-12 21:38 mpolacek at gcc dot gnu.org 2024-04-12 21:38 ` [Bug c++/114707] " mpolacek at gcc dot gnu.org ` (2 more replies) 0 siblings, 3 replies; 4+ messages in thread From: mpolacek at gcc dot gnu.org @ 2024-04-12 21:38 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114707 Bug ID: 114707 Summary: Mark TARGET_EXPRs for function arguments eliding Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: mpolacek at gcc dot gnu.org Target Milestone: --- From <https://gcc.gnu.org/pipermail/gcc-patches/2024-April/649426.html>: let's do set_target_expr_eliding in convert_for_arg_passing. Then the pset in replace_placeholders_for_class_temp_r can go. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/114707] Mark TARGET_EXPRs for function arguments eliding 2024-04-12 21:38 [Bug c++/114707] New: Mark TARGET_EXPRs for function arguments eliding mpolacek at gcc dot gnu.org @ 2024-04-12 21:38 ` mpolacek at gcc dot gnu.org 2024-05-28 18:29 ` cvs-commit at gcc dot gnu.org 2024-05-28 18:29 ` mpolacek at gcc dot gnu.org 2 siblings, 0 replies; 4+ messages in thread From: mpolacek at gcc dot gnu.org @ 2024-04-12 21:38 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114707 Marek Polacek <mpolacek at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org Ever confirmed|0 |1 Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2024-04-12 --- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> --- Mine for GCC 15. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/114707] Mark TARGET_EXPRs for function arguments eliding 2024-04-12 21:38 [Bug c++/114707] New: Mark TARGET_EXPRs for function arguments eliding mpolacek at gcc dot gnu.org 2024-04-12 21:38 ` [Bug c++/114707] " mpolacek at gcc dot gnu.org @ 2024-05-28 18:29 ` cvs-commit at gcc dot gnu.org 2024-05-28 18:29 ` mpolacek at gcc dot gnu.org 2 siblings, 0 replies; 4+ messages in thread From: cvs-commit at gcc dot gnu.org @ 2024-05-28 18:29 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114707 --- Comment #2 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The trunk branch has been updated by Marek Polacek <mpolacek@gcc.gnu.org>: https://gcc.gnu.org/g:5bc731b83b51910dc7f7cacddb4257a16d62ee38 commit r15-868-g5bc731b83b51910dc7f7cacddb4257a16d62ee38 Author: Marek Polacek <polacek@redhat.com> Date: Wed May 22 16:28:02 2024 -0400 c++: mark TARGET_EXPRs for function arguments eliding [PR114707] Coming back to our discussion in <https://gcc.gnu.org/pipermail/gcc-patches/2024-April/649426.html>: TARGET_EXPRs that initialize a function argument are not marked TARGET_EXPR_ELIDING_P even though gimplify_arg drops such TARGET_EXPRs on the floor. To work around it, I added a pset to replace_placeholders_for_class_temp_r, but it would be best to just rely on TARGET_EXPR_ELIDING_P. PR c++/114707 gcc/cp/ChangeLog: * call.cc (convert_for_arg_passing): Call set_target_expr_eliding. * typeck2.cc (replace_placeholders_for_class_temp_r): Don't use pset. (digest_nsdmi_init): Call cp_walk_tree_without_duplicates instead of cp_walk_tree. Reviewed-by: Jason Merrill <jason@redhat.com> ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/114707] Mark TARGET_EXPRs for function arguments eliding 2024-04-12 21:38 [Bug c++/114707] New: Mark TARGET_EXPRs for function arguments eliding mpolacek at gcc dot gnu.org 2024-04-12 21:38 ` [Bug c++/114707] " mpolacek at gcc dot gnu.org 2024-05-28 18:29 ` cvs-commit at gcc dot gnu.org @ 2024-05-28 18:29 ` mpolacek at gcc dot gnu.org 2 siblings, 0 replies; 4+ messages in thread From: mpolacek at gcc dot gnu.org @ 2024-05-28 18:29 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114707 Marek Polacek <mpolacek at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> --- Done. ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-05-28 18:29 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2024-04-12 21:38 [Bug c++/114707] New: Mark TARGET_EXPRs for function arguments eliding mpolacek at gcc dot gnu.org 2024-04-12 21:38 ` [Bug c++/114707] " mpolacek at gcc dot gnu.org 2024-05-28 18:29 ` cvs-commit at gcc dot gnu.org 2024-05-28 18:29 ` mpolacek at gcc dot gnu.org
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).