summaryrefslogtreecommitdiff
path: root/gcc/cp/method.c
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2004-02-04 12:22:42 +0000
committerPaul Brook <pbrook@gcc.gnu.org>2004-02-04 12:22:42 +0000
commitdd292d0ad8022964b57aba763b9abce9564ac14f (patch)
tree8c306782503db9a3eda1fbfd9d593004b11e369d /gcc/cp/method.c
parent18d0ecb6ec0d462b185a4fa340952a040b5c6f9e (diff)
downloadgcc-dd292d0ad8022964b57aba763b9abce9564ac14f.tar.gz
calls.c (initialize_argument_information): Add CALL_FROM_THUNK_P parameter.
* calls.c (initialize_argument_information): Add CALL_FROM_THUNK_P parameter. Use it instead of current_function_is_thunk. * function.h (struct function): Update documentation for is_thunk. * tree.h (CALL_FROM_THUNK_P): New macro. * config/alpha/alpha.c (alpha_sa_mask): Do not check no_new_pseudos when testing current_function_is_thunk. * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likeiwse. * decl.c (cxx_push_function_context): Do not set current_function_is_thunk. * method.c (use_thunk): Set CALL_FROM_THUNK on the call to the actual function. From-SVN: r77244
Diffstat (limited to 'gcc/cp/method.c')
-rw-r--r--gcc/cp/method.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cp/method.c b/gcc/cp/method.c
index 6acab3a902f..802bf1d6f3c 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);
+ CALL_FROM_THUNK_P (t) = 1;
if (VOID_TYPE_P (TREE_TYPE (t)))
finish_expr_stmt (t);