From b521dcbee13ceb8478d0286d6c56279bd7ff3d65 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Fri, 6 Apr 2007 14:56:50 +0200 Subject: [PATCH] cgraphunit.c (decide_is_function_needed): Do not keep always_inline functions. * cgraphunit.c (decide_is_function_needed): Do not keep always_inline functions. From-SVN: r123614 --- gcc/ChangeLog | 5 +++++ gcc/cgraphunit.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8e0b8a126c8..ed873d7350d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2007-04-06 Jan Hubicka + + * cgraphunit.c (decide_is_function_needed): Do not keep always_inline + functions. + 2007-04-06 Uros Bizjak * config/i386/i386.c (output_387_reg_move): Handle memory operand[0]. diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c index 55b915d3ff4..416cf3ecce9 100644 --- a/gcc/cgraphunit.c +++ b/gcc/cgraphunit.c @@ -202,7 +202,8 @@ decide_is_function_needed (struct cgraph_node *node, tree decl) for extern inline ones. */ if (flag_keep_inline_functions && DECL_DECLARED_INLINE_P (decl) - && !DECL_EXTERNAL (decl)) + && !DECL_EXTERNAL (decl) + && !lookup_attribute ("always_inline", DECL_ATTRIBUTES (decl))) return true; /* If we decided it was needed before, but at the time we didn't have