decl.c (register_dtor_fn): Pass the address of dso_handle, not dso_handle itself, to __cxa_atexit.
* decl.c (register_dtor_fn): Pass the address of dso_handle, not dso_handle itself, to __cxa_atexit. From-SVN: r52353
This commit is contained in:
parent
5b25ca6833
commit
6286adb45c
|
@ -1,3 +1,8 @@
|
|||
2002-04-15 Mark Mitchell <mark@codesourcery.com>
|
||||
|
||||
* decl.c (register_dtor_fn): Pass the address of dso_handle, not
|
||||
dso_handle itself, to __cxa_atexit.
|
||||
|
||||
2002-04-14 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
* class.c (layout_virtual_bases): Do all dsize computation on trees.
|
||||
|
|
|
@ -8609,7 +8609,9 @@ register_dtor_fn (decl)
|
|||
cleanup = build_unary_op (ADDR_EXPR, cleanup, 0);
|
||||
if (flag_use_cxa_atexit)
|
||||
{
|
||||
args = tree_cons (NULL_TREE, get_dso_handle_node (), NULL_TREE);
|
||||
args = tree_cons (NULL_TREE,
|
||||
build_unary_op (ADDR_EXPR, get_dso_handle_node (), 0),
|
||||
NULL_TREE);
|
||||
args = tree_cons (NULL_TREE, null_pointer_node, args);
|
||||
args = tree_cons (NULL_TREE, cleanup, args);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue