From a9b6f1e71218dd241d632aa465b3c0774010b51d Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Wed, 4 Dec 2002 14:58:19 +0000 Subject: [PATCH] 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: r59817 --- gcc/ChangeLog | 16 +++++++++++----- gcc/c-semantics.c | 1 + 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4667a64cd67..45562a3fc11 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. + Wed Dec 4 15:20:54 CET 2002 Jan Hubicka * cfgrtl.c (force_nonfallthru_and_redirect): Allow abnormal edge @@ -702,7 +708,7 @@ Thu Nov 21 23:52:04 CET 2002 Jan Hubicka * reload.c (find_reloads): Always reload EXTRA_ADDRESS_CONSTRAINT operands in Pmode. -2002-11-20  Eric Botcazou   +2002-11-20 Eric Botcazou 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 (crtn.o): Use this... ($(T)crtn.o): ... instead. -2002-11-09 Eric Botcazou +2002-11-10 Eric Botcazou 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 (call): Add register indirect case. (mod): Fix wrong subreg. -2002-09-25 Eric Botcazou +2002-10-06 Eric Botcazou Volker Reichelt PR c/7411 @@ -5517,7 +5523,7 @@ Tue Sep 17 13:40:13 2002 Nicola Pero replace_equiv_address to generate proper aliasing info. Move common code out of conditionals. Localize vars. -2002-09-09 Eric Botcazou +2002-09-11 Eric Botcazou * 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 * 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 +2002-07-17 Eric Botcazou Glen Nakamura PR optimization/6713 diff --git a/gcc/c-semantics.c b/gcc/c-semantics.c index 70699a047bc..994b4625da5 100644 --- a/gcc/c-semantics.c +++ b/gcc/c-semantics.c @@ -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)) { -- 2.30.2