Commit c0da11c4 by Jason Merrill Committed by Jason Merrill

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

From-SVN: r15861
parent 6714c1ae
...@@ -46,6 +46,10 @@ Mon Oct 6 12:04:24 1997 Jeffrey A Law (law@cygnus.com) ...@@ -46,6 +46,10 @@ Mon Oct 6 12:04:24 1997 Jeffrey A Law (law@cygnus.com)
* Makefile.in (check-g77): New test target. * Makefile.in (check-g77): New test target.
(CHECK-TARGETS): Add check-g77. (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> Fri Oct 3 15:49:27 1997 Michael Meissner <meissner@cygnus.com>
* flow.c (print_rtl_with_bb): Cast alloca return value for * flow.c (print_rtl_with_bb): Cast alloca return value for
......
...@@ -3022,6 +3022,11 @@ rest_of_compilation (decl) ...@@ -3022,6 +3022,11 @@ rest_of_compilation (decl)
fflush (rtl_dump_file); 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 /* If function is inline, and we don't yet know whether to
compile it by itself, defer decision till end of compilation. compile it by itself, defer decision till end of compilation.
finish_compilation will call rest_of_compilation again finish_compilation will call rest_of_compilation again
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment