aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/misc.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2007-04-22 17:33:32 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2007-04-22 15:33:32 +0000
commit395a40e0e28129430ca707dad8475fefad3d8782 (patch)
tree7a5b02a557aae27620a13c42bc29913de6d67d9e /gcc/ada/misc.c
parentb7716a8e90c72b98b9f92f20c1fa142e6573e05d (diff)
downloadgcc-395a40e0e28129430ca707dad8475fefad3d8782.zip
gcc-395a40e0e28129430ca707dad8475fefad3d8782.tar.gz
gcc-395a40e0e28129430ca707dad8475fefad3d8782.tar.bz2
misc.c (gnat_expand_body): Don't call target for destructors, avoid redundant check on syntax errors.
* ada/misc.c (gnat_expand_body): Don't call target for destructors, avoid redundant check on syntax errors. * final.c (rest_of_handle_final): Call targetm.asm_out.constructor/targetm.asm_out.destructor * cgraphunit.c (cgraph_build_static_cdtor): Don't do it here; set proper priority via decl_*_priority_insert. * c-common.c (c_expand_body): Likewise. From-SVN: r124044
Diffstat (limited to 'gcc/ada/misc.c')
-rw-r--r--gcc/ada/misc.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/gcc/ada/misc.c b/gcc/ada/misc.c
index 8c53961..7d4ffde 100644
--- a/gcc/ada/misc.c
+++ b/gcc/ada/misc.c
@@ -676,18 +676,7 @@ gnat_expand_expr (tree exp, rtx target, enum machine_mode tmode,
static void
gnat_expand_body (tree gnu_decl)
{
- if (!DECL_INITIAL (gnu_decl) || DECL_INITIAL (gnu_decl) == error_mark_node)
- return;
-
tree_rest_of_compilation (gnu_decl);
-
- if (DECL_STATIC_CONSTRUCTOR (gnu_decl) && targetm.have_ctors_dtors)
- targetm.asm_out.constructor (XEXP (DECL_RTL (gnu_decl), 0),
- DEFAULT_INIT_PRIORITY);
-
- if (DECL_STATIC_DESTRUCTOR (gnu_decl) && targetm.have_ctors_dtors)
- targetm.asm_out.destructor (XEXP (DECL_RTL (gnu_decl), 0),
- DEFAULT_INIT_PRIORITY);
}
/* Adjusts the RLI used to layout a record after all the fields have been