]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR c/7622 (tree inliner fallout (regression relative to 2.95))
authorEric Botcazou <ebotcazou@libertysurf.fr>
Wed, 4 Dec 2002 20:28:33 +0000 (21:28 +0100)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Wed, 4 Dec 2002 20:28:33 +0000 (20:28 +0000)
PR c/7622
* c-semantics (genrtl_scope_stmt): Do not output inlined
nested functions that contain no code.

From-SVN: r59829

gcc/ChangeLog
gcc/c-semantics.c

index 7a27c2fd34d903e8b23637cdebf315dd0ecc143f..9ef0334b9eb8c4b9e92713eaef3eeb0a105ff49a 100644 (file)
@@ -1,3 +1,9 @@
+2002-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
+
+       PR c/7622
+       * c-semantics (genrtl_scope_stmt): Do not output inlined
+       nested functions that contain no code.
+
 2002-12-04  Jakub Jelinek  <jakub@redhat.com>
 
        * fold-const.c (associate_trees): Only optimize NEGATE_EXPR in one
        * fold-const.c (extract_muldiv): Don't propagate division unless
        both arguments are multiples of C.
 
-2002-11-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
+2002-11-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
 
        PR optimization/8275
 
        Merge from mainline:
-       2002-09-19  Dale Johannesen <dalej@apple.com>
+       2002-09-19  Dale Johannesen <dalej@apple.com>
 
        * 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  <ebotcazou@libertysurf.fr>
+2002-11-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
 
        PR c/8518
        * c-decl.c (duplicate_decls): Outline the second definition
        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  <ebotcazou@libertysurf.fr>
+2002-11-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
 
        PR optimization/8599
 
        Merge from mainline:
-       2002-11-04  Dale Johannesen  <dalej@apple.com>
+       2002-11-04  Dale Johannesen  <dalej@apple.com>
 
-       * 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  <drow@mvista.com>
 
index 030a04cb00954479b72642427f45b8b526ed2335..35f7df39a826bf943febb66f479640067bbf0c21 100644 (file)
@@ -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))
            {