From 8748dc22aeb70a363598b81e1afced8556f79138 Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Fri, 2 Jan 2004 15:54:08 +0000 Subject: [PATCH] re PR c++/12729 (mipsisa64-elf regressions: g++.old-deja/g++.jason/thunk1.C, thunk2.C) PR target/12729 * method.c (use_thunk): Pass the CALL_EXPR through force_target_expr. From-SVN: r75325 --- gcc/cp/ChangeLog | 5 +++++ gcc/cp/method.c | 1 + 2 files changed, 6 insertions(+) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index fa814377cc0..b2ab218f08a 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2004-01-02 Richard Sandiford + + PR target/12729 + * method.c (use_thunk): Pass the CALL_EXPR through force_target_expr. + 2004-01-02 Kriang Lerdsuwanakij PR c++/13520 diff --git a/gcc/cp/method.c b/gcc/cp/method.c index bd1e2ad9ec5..9dd3c48129d 100644 --- a/gcc/cp/method.c +++ b/gcc/cp/method.c @@ -487,6 +487,7 @@ use_thunk (tree thunk_fndecl, bool emit_p) t = tree_cons (NULL_TREE, a, t); t = nreverse (t); t = build_call (alias, t); + t = force_target_expr (TREE_TYPE (t), t); if (!this_adjusting) t = thunk_adjust (t, /*this_adjusting=*/0, fixed_offset, virtual_offset); -- 2.30.2