This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] gimplify-unit-at-a-time (final)


> 	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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]