summaryrefslogtreecommitdiff
path: root/gcc/stor-layout.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2007-11-19 17:49:11 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2007-11-19 17:49:11 +0000
commit7634135aecceeb3ecaec1873e396d0802056566d (patch)
tree7bf8a6ef5dd30d212402f8afc3d2286823ccd8b4 /gcc/stor-layout.c
parent921d313fd5472454b07f684d59634b738216ed49 (diff)
downloadgcc-7634135aecceeb3ecaec1873e396d0802056566d.tar.gz
re PR ada/34098 (xgcc: Internal error: Segmentation fault (program gnat1))
PR ada/34098 ada/ * misc.c (gnat_adjust_rli): Delete. (gnat_init): Do not initialize the translation code here. Do not call set_lang_adjust_rli. * trans.c (init_code_table): Make static. (gnat_init_stmt_group): Delete. (gigi): Initialize the translation code entirely here. Emit debug info for the common types here instead of... * utils.c (gnat_init_decl_processing): ...here. * gigi.h (init_code_table): Delete. (gnat_init_stmt_group): Likewise. * stor-layout.c (lang_adjust_rli): Delete. (set_lang_adjust_rli): Likewise. (layout_type): Do not call lang_adjust_rli hook. * tree.h (set_lang_adjust_rli): Delete. From-SVN: r130294
Diffstat (limited to 'gcc/stor-layout.c')
-rw-r--r--gcc/stor-layout.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c
index 23e0cf5549e..1ae2db5ca00 100644
--- a/gcc/stor-layout.c
+++ b/gcc/stor-layout.c
@@ -496,17 +496,6 @@ relayout_decl (tree decl)
layout_decl (decl, 0);
}
-/* Hook for a front-end function that can modify the record layout as needed
- immediately before it is finalized. */
-
-static void (*lang_adjust_rli) (record_layout_info) = 0;
-
-void
-set_lang_adjust_rli (void (*f) (record_layout_info))
-{
- lang_adjust_rli = f;
-}
-
/* Begin laying out type T, which may be a RECORD_TYPE, UNION_TYPE, or
QUAL_UNION_TYPE. Return a pointer to a struct record_layout_info which
is to be passed to all other layout functions for this record. It is the
@@ -1866,9 +1855,6 @@ layout_type (tree type)
if (TREE_CODE (type) == QUAL_UNION_TYPE)
TYPE_FIELDS (type) = nreverse (TYPE_FIELDS (type));
- if (lang_adjust_rli)
- (*lang_adjust_rli) (rli);
-
/* Finish laying out the record. */
finish_record_layout (rli, /*free_p=*/true);
}