re PR c++/12729 (mipsisa64-elf regressions: g++.old-deja/g++.jason/thunk1.C, thunk2.C)
authorRichard Sandiford <rsandifo@redhat.com>
Fri, 2 Jan 2004 15:54:08 +0000 (15:54 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Fri, 2 Jan 2004 15:54:08 +0000 (15:54 +0000)
PR target/12729
* method.c (use_thunk): Pass the CALL_EXPR through force_target_expr.

From-SVN: r75325

gcc/cp/ChangeLog
gcc/cp/method.c

index fa814377cc0e1045d92e73fc9547b4f52e881c79..b2ab218f08ad896b584411dbd2291c39bdfa12e8 100644 (file)
@@ -1,3 +1,8 @@
+2004-01-02  Richard Sandiford  <rsandifo@redhat.com>
+
+       PR target/12729
+       * method.c (use_thunk): Pass the CALL_EXPR through force_target_expr.
+
 2004-01-02  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
 
        PR c++/13520
index bd1e2ad9ec5cf8d2e26f5eeb9012579d95ad6616..9dd3c48129d46820c67f48d4053d486f6ee1c1e4 100644 (file)
@@ -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);