re PR c/7622 (tree inliner fallout (regression relative to 2.95))
authorEric Botcazou <ebotcazou@gcc.gnu.org>
Wed, 4 Dec 2002 14:58:19 +0000 (14:58 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Wed, 4 Dec 2002 14:58:19 +0000 (14:58 +0000)
PR c/7622
* c-semantics (genrtl_scope_stmt): Do not output inlined
nested functions that contain no code.

From-SVN: r59817

gcc/ChangeLog
gcc/c-semantics.c

index 4667a64cd67cebd44f36f26656d3cb896c602f82..45562a3fc111d7f1a498804c933697fda0f4f22e 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.
+
 Wed Dec  4 15:20:54 CET 2002  Jan Hubicka  <jh@suse.cz>
 
        * cfgrtl.c (force_nonfallthru_and_redirect):  Allow abnormal edge
@@ -702,7 +708,7 @@ Thu Nov 21 23:52:04 CET 2002  Jan Hubicka  <jH@suse.cz>
        * reload.c (find_reloads): Always reload EXTRA_ADDRESS_CONSTRAINT
        operands in Pmode.
 
-2002-11-20  Eric Botcazou  <ebotcazou@libertysurf.fr>
+2002-11-20  Eric Botcazou  <ebotcazou@libertysurf.fr>
 
        PR c/8518
        * c-decl.c (duplicate_decls): Outline the second definition
@@ -1138,7 +1144,7 @@ Mon Nov 11 12:06:08 CET 2002  Jan Hubicka  <jh@suse.cz>
        (crtn.o): Use this...
        ($(T)crtn.o): ... instead.
 
-2002-11-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
+2002-11-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
 
        PR c/8439
        * recog.c (validate_replace_rtx_1) [PLUS]: Simplify only
@@ -3263,7 +3269,7 @@ Tue Oct  8 16:50:10 CEST 2002  Jan Hubicka  <jh@suse.cz>
        (call): Add register indirect case.
        (mod): Fix wrong subreg.
 
-2002-09-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
+2002-10-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
            Volker Reichelt <reichelt@igpm.rwth-aachen.de>
 
        PR c/7411
@@ -5517,7 +5523,7 @@ Tue Sep 17 13:40:13 2002  Nicola Pero  <n.pero@mi.flashnet.it>
        replace_equiv_address to generate proper aliasing info.
        Move common code out of conditionals.  Localize vars.
 
-2002-09-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
+2002-09-11  Eric Botcazou  <ebotcazou@libertysurf.fr>
 
        * optabs.c (expand_binop): Minor cleanup.
        (expand_twoval_binop): Convert CONST_INTs like in expand_binop.
@@ -10306,7 +10312,7 @@ Wed Jul 17 19:23:32 2002  J"orn Rennecke <joern.rennecke@superh.com>
        * config/i386/i386.c (ix86_expand_int_movcc): In the general case
        suppress addition when either ct or cf are zero.
 
-2002-06-17  Eric Botcazou <ebotcazou@multimania.com>
+2002-07-17  Eric Botcazou <ebotcazou@multimania.com>
            Glen Nakamura <glen@imodulo.com>
 
        PR optimization/6713
index 70699a047bcd3692b9dc54871c56b38ef916a162..994b4625da5daf57643640dd0643aac364c710a2 100644 (file)
@@ -617,6 +617,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))
            {