* toplev.c (rest_of_compilation): Defer all non-nested inlines.

From-SVN: r15861
This commit is contained in:
Jason Merrill 1997-10-07 18:04:33 +00:00 committed by Jason Merrill
parent 6714c1ae69
commit c0da11c40a
2 changed files with 9 additions and 0 deletions

View File

@ -46,6 +46,10 @@ Mon Oct 6 12:04:24 1997 Jeffrey A Law (law@cygnus.com)
* Makefile.in (check-g77): New test target.
(CHECK-TARGETS): Add check-g77.
Fri Oct 3 11:56:36 1997 Jason Merrill <jason@yorick.cygnus.com>
* toplev.c (rest_of_compilation): Defer all non-nested inlines.
Fri Oct 3 15:49:27 1997 Michael Meissner <meissner@cygnus.com>
* flow.c (print_rtl_with_bb): Cast alloca return value for

View File

@ -3022,6 +3022,11 @@ rest_of_compilation (decl)
fflush (rtl_dump_file);
});
/* If we can, defer compiling inlines until EOF.
save_for_inline_copying can be extremely expensive. */
if (inlineable && ! decl_function_context (decl))
DECL_DEFER_OUTPUT (decl) = 1;
/* If function is inline, and we don't yet know whether to
compile it by itself, defer decision till end of compilation.
finish_compilation will call rest_of_compilation again