From: Jason Merrill Date: Tue, 7 Oct 1997 18:04:33 +0000 (+0000) Subject: * toplev.c (rest_of_compilation): Defer all non-nested inlines. X-Git-Tag: releases/egcs-1.0.0~379 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c0da11c40af197cc142294ed2422299e93a00f2e;p=thirdparty%2Fgcc.git * toplev.c (rest_of_compilation): Defer all non-nested inlines. From-SVN: r15861 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d6f258bdc078..c7eacd955edc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 + + * toplev.c (rest_of_compilation): Defer all non-nested inlines. + Fri Oct 3 15:49:27 1997 Michael Meissner * flow.c (print_rtl_with_bb): Cast alloca return value for diff --git a/gcc/toplev.c b/gcc/toplev.c index 2658e5b5ee91..225964b6f0f0 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -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