From: Richard Sandiford Date: Fri, 2 Jan 2004 15:54:08 +0000 (+0000) Subject: re PR c++/12729 (mipsisa64-elf regressions: g++.old-deja/g++.jason/thunk1.C, thunk2.C) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8748dc22aeb70a363598b81e1afced8556f79138;p=gcc.git 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 --- 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);