]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* toplev.c (rest_of_compilation): Defer all non-nested inlines.
authorJason Merrill <jason@yorick.cygnus.com>
Tue, 7 Oct 1997 18:04:33 +0000 (18:04 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 7 Oct 1997 18:04:33 +0000 (14:04 -0400)
From-SVN: r15861

gcc/ChangeLog
gcc/toplev.c

index d6f258bdc0787462041d390c31624a4cf2e83ae6..c7eacd955edc54079623e53bf73d80dc27350e15 100644 (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
index 2658e5b5ee9121fd4c817e8ec977f50e22a802de..225964b6f0f08444a9014bec103403526f09821b 100644 (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