From: Eric Botcazou Date: Wed, 4 Dec 2002 20:28:33 +0000 (+0100) Subject: re PR c/7622 (tree inliner fallout (regression relative to 2.95)) X-Git-Tag: releases/gcc-3.2.2~217 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be1668a60af048fe9f3edef838146b829a1cdc7f;p=thirdparty%2Fgcc.git re PR c/7622 (tree inliner fallout (regression relative to 2.95)) PR c/7622 * c-semantics (genrtl_scope_stmt): Do not output inlined nested functions that contain no code. From-SVN: r59829 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7a27c2fd34d9..9ef0334b9eb8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2002-12-04 Eric Botcazou + + PR c/7622 + * c-semantics (genrtl_scope_stmt): Do not output inlined + nested functions that contain no code. + 2002-12-04 Jakub Jelinek * fold-const.c (associate_trees): Only optimize NEGATE_EXPR in one @@ -45,12 +51,12 @@ * fold-const.c (extract_muldiv): Don't propagate division unless both arguments are multiples of C. -2002-11-24  Eric Botcazou   +2002-11-24 Eric Botcazou PR optimization/8275 Merge from mainline: - 2002-09-19  Dale Johannesen + 2002-09-19 Dale Johannesen * combine.c (make_extraction): Don't create invalid subreg. @@ -67,7 +73,7 @@ * optabs.c (expand_binop): Convert CONST_INTs in shift operations too. -2002-11-23  Eric Botcazou   +2002-11-23 Eric Botcazou PR c/8518 * c-decl.c (duplicate_decls): Outline the second definition @@ -85,16 +91,16 @@ decls for g77_integer_type_node and friends from here ... * c-common.c (c_common_nodes_and_builtins): ... to here. -2002-11-22  Eric Botcazou   +2002-11-22 Eric Botcazou PR optimization/8599 Merge from mainline: - 2002-11-04  Dale Johannesen   + 2002-11-04 Dale Johannesen - * doloop.c (doloop_modify_runtime):  Fix loop count computation + * doloop.c (doloop_modify_runtime): Fix loop count computation for unrolled loops. - * loop.c (loop_invariant_p):  Support calling from unroller. + * loop.c (loop_invariant_p): Support calling from unroller. 2002-11-22 Daniel Jacobowitz diff --git a/gcc/c-semantics.c b/gcc/c-semantics.c index 030a04cb0095..35f7df39a826 100644 --- a/gcc/c-semantics.c +++ b/gcc/c-semantics.c @@ -615,6 +615,7 @@ genrtl_scope_stmt (t) { if (TREE_CODE (fn) == FUNCTION_DECL && DECL_CONTEXT (fn) == current_function_decl + && DECL_SAVED_INSNS (fn) && !TREE_ASM_WRITTEN (fn) && TREE_ADDRESSABLE (fn)) {