From f93dacbdefbd440732896d176447c814d61458bf Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Sat, 16 Sep 2000 14:58:51 -0400 Subject: function.h (no_debugging_symbols): New field. * function.h (no_debugging_symbols): New field. * integrate.c (save_for_inline): Renamed from save_for_inline_nocopy. Initialize no_debugging_symbols. (output_inline_function): Save and restore write_symbols and set from no_debugging_symbols. * toplev.c (rest_of_compilation): Call save_for_inline. * tree.h: Update comment. From-SVN: r36461 --- gcc/toplev.c | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'gcc/toplev.c') diff --git a/gcc/toplev.c b/gcc/toplev.c index 95ef7a2..fb41c78 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -2778,17 +2778,15 @@ rest_of_compilation (decl) if (DECL_DEFER_OUTPUT (decl)) { - /* If -Wreturn-type, we have to do a bit of compilation. - However, if we just fall through we will call - save_for_inline_copying() which results in excessive - memory use. Instead, we just want to call - jump_optimize() to figure out whether or not we can fall - off the end of the function; we do the minimum amount of - work necessary to make that safe. And, we set optimize - to zero to keep jump_optimize from working too hard. */ + /* If -Wreturn-type, we have to do a bit of compilation. We just + want to call jump_optimize to figure out whether or not we can + fall off the end of the function; we do the minimum amount of + work necessary to make that safe. And, we set optimize to zero + to keep jump_optimize from working too hard. */ if (warn_return_type) { int saved_optimize = optimize; + optimize = 0; find_exception_handler_labels (); jump_optimize (insns, !JUMP_CROSS_JUMP, !JUMP_NOOP_MOVES, @@ -2803,7 +2801,7 @@ rest_of_compilation (decl) TREE_NOTHROW (current_function_decl) = 1; timevar_push (TV_INTEGRATION); - save_for_inline_nocopy (decl); + save_for_inline (decl); timevar_pop (TV_INTEGRATION); DECL_SAVED_INSNS (decl)->inlinable = inlinable; goto exit_rest_of_compilation; @@ -2862,7 +2860,6 @@ rest_of_compilation (decl) #endif /* From now on, allocate rtl in current_obstack, not in saveable_obstack. - Note that that may have been done above, in save_for_inline_copying. The call to resume_temporary_allocation near the end of this function goes back to the usual state of affairs. This must be done after we've built up any unwinders for exception handling, and done -- cgit v1.1