summaryrefslogtreecommitdiff
path: root/gcc/tree-mudflap.c
diff options
context:
space:
mode:
authorfche <fche@138bc75d-0d04-0410-961f-82ee72b054a4>2004-06-24 21:12:49 +0000
committerfche <fche@138bc75d-0d04-0410-961f-82ee72b054a4>2004-06-24 21:12:49 +0000
commitea872c2ee44d550c397a8822476f8702f3fc4a49 (patch)
tree11507a1653bfd3f4ae5b3cbd209d14f120db9056 /gcc/tree-mudflap.c
parent9a1a84ca103b211b3b5c02d9618752a2a57d6201 (diff)
downloadgcc-ea872c2ee44d550c397a8822476f8702f3fc4a49.tar.gz
2004-06-24 Frank Ch. Eigler <fche@redhat.com>
* tree-mudflap.c (mx_register_decls): Add third (type) argument to synthesized __mf_unregister call. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83612 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-mudflap.c')
-rw-r--r--gcc/tree-mudflap.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/gcc/tree-mudflap.c b/gcc/tree-mudflap.c
index 6181bb6ab13..4d9e77b490e 100644
--- a/gcc/tree-mudflap.c
+++ b/gcc/tree-mudflap.c
@@ -883,19 +883,23 @@ mx_register_decls (tree decl, tree *stmt_list)
size = convert (size_type_node, TYPE_SIZE_UNIT (TREE_TYPE (decl)));
}
- /* (& VARIABLE, sizeof (VARIABLE)) */
+ /* (& VARIABLE, sizeof (VARIABLE), __MF_TYPE_STACK) */
unregister_fncall_params =
tree_cons (NULL_TREE,
convert (ptr_type_node,
mf_mark (build1 (ADDR_EXPR,
build_pointer_type (TREE_TYPE (decl)),
decl))),
- tree_cons (NULL_TREE, size, NULL_TREE));
+ tree_cons (NULL_TREE,
+ size,
+ tree_cons (NULL_TREE,
+ build_int_2 (3, 0), /* __MF_TYPE_STACK */
+ NULL_TREE)));
/* __mf_unregister (...) */
unregister_fncall = build_function_call_expr (mf_unregister_fndecl,
unregister_fncall_params);
- /* (& VARIABLE, sizeof (VARIABLE), __MF_TYPE_STACK) */
+ /* (& VARIABLE, sizeof (VARIABLE), __MF_TYPE_STACK, "name") */
variable_name = mf_varname_tree (decl);
register_fncall_params =
tree_cons (NULL_TREE,