This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] gimplify-unit-at-a-time (final)
- From: Eric Botcazou <ebotcazou at adacore dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Richard Guenther <rguenther at suse dot de>, Diego Novillo <dnovillo at google dot com>, fortran at gcc dot gnu dot org, java at gcc dot gnu dot org
- Date: Fri, 10 Jul 2009 12:42:50 +0200
- Subject: Re: [PATCH] gimplify-unit-at-a-time (final)
- References: <alpine.LNX.2.00.0907071728310.16347@zhemvz.fhfr.qr>
> ada/
> * utils.c (end_subprog_body): Revert to pre-tuples state.
> (gnat_gimplify_function): Do not gimplify here.
> (gnat_write_global_declarations): Also finalize the CU.
> * misc.c (gnat_parse_file): Do not finalize the CU here.
> * trans.c (gigi): Revert to pre-tuples state.
The unused argument of end_subprog_body should be removed as well as
! /*cgraph_remove_node (cgraph_node (info->elab_proc));*/
and
! /* Process the function as others, but for indicating this is an
! elab proc, to be discarded if empty, then propagate the status
! up to the GNAT tree node. */
It looks like gnat_gimplify_function is now useless; would it possible to get
rid of it and add
dump_function (TDI_original, fndecl);
to end_subprog_body right after the call to gnat_genericize?
Otherwise looks OK.
--
Eric Botcazou