cgraph.c (cgraph_function_possibly_inlined_p): Do not rely on DECL_INLINE.
* cgraph.c (cgraph_function_possibly_inlined_p): Do not rely on DECL_INLINE. * cgraphunit.c (record_cdtor_fn): Do not initialize DECL_INLINE (cgraph_preserve_function_body_p): Do not rely on DECL_INLINE. * dojump.c (clear_pending_stack_adjust): Likewise. * print-tree.c (print_node): Ignore DECL_INLINE. * tree-inline.c (inlinable_function_p): Likewise. From-SVN: r138165
This commit is contained in:
parent
18509edc7f
commit
c37f4ba497
6 changed files with 15 additions and 11 deletions
|
@ -1,3 +1,12 @@
|
|||
2008-07-25 Jan Hubicka <jh@suse.cz>
|
||||
|
||||
* cgraph.c (cgraph_function_possibly_inlined_p): Do not rely on DECL_INLINE.
|
||||
* cgraphunit.c (record_cdtor_fn): Do not initialize DECL_INLINE
|
||||
(cgraph_preserve_function_body_p): Do not rely on DECL_INLINE.
|
||||
* dojump.c (clear_pending_stack_adjust): Likewise.
|
||||
* print-tree.c (print_node): Ignore DECL_INLINE.
|
||||
* tree-inline.c (inlinable_function_p): Likewise.
|
||||
|
||||
2008-07-25 Michael Meissner <gnu@the-meissners.org>
|
||||
|
||||
* doc/extend.texi (hot attribute): Document that the hot attribute
|
||||
|
|
|
@ -1140,7 +1140,7 @@ bool
|
|||
cgraph_function_possibly_inlined_p (tree decl)
|
||||
{
|
||||
if (!cgraph_global_info_ready)
|
||||
return (DECL_INLINE (decl) && !flag_really_no_inline);
|
||||
return !DECL_UNINLINABLE (decl) && !flag_really_no_inline;
|
||||
return DECL_POSSIBLY_INLINED (decl);
|
||||
}
|
||||
|
||||
|
|
|
@ -172,7 +172,6 @@ record_cdtor_fn (tree fndecl)
|
|||
VEC_safe_push (tree, gc, static_dtors, fndecl);
|
||||
DECL_STATIC_DESTRUCTOR (fndecl) = 0;
|
||||
}
|
||||
DECL_INLINE (fndecl) = 1;
|
||||
node = cgraph_node (fndecl);
|
||||
node->local.disregard_inline_limits = 1;
|
||||
cgraph_mark_reachable_node (node);
|
||||
|
@ -1211,10 +1210,8 @@ bool
|
|||
cgraph_preserve_function_body_p (tree decl)
|
||||
{
|
||||
struct cgraph_node *node;
|
||||
if (!cgraph_global_info_ready)
|
||||
return (flag_really_no_inline
|
||||
? DECL_DISREGARD_INLINE_LIMITS (decl)
|
||||
: DECL_INLINE (decl));
|
||||
|
||||
gcc_assert (cgraph_global_info_ready);
|
||||
/* Look if there is any clone around. */
|
||||
for (node = cgraph_node (decl); node; node = node->next_clone)
|
||||
if (node->global.inlined_to)
|
||||
|
|
|
@ -71,8 +71,7 @@ clear_pending_stack_adjust (void)
|
|||
{
|
||||
if (optimize > 0
|
||||
&& (! flag_omit_frame_pointer || cfun->calls_alloca)
|
||||
&& EXIT_IGNORE_STACK
|
||||
&& ! (DECL_INLINE (current_function_decl) && ! flag_no_inline))
|
||||
&& EXIT_IGNORE_STACK)
|
||||
discard_pending_stack_adjust ();
|
||||
}
|
||||
|
||||
|
|
|
@ -375,8 +375,8 @@ print_node (FILE *file, const char *prefix, tree node, int indent)
|
|||
if (TREE_CODE (node) == FUNCTION_DECL
|
||||
&& DECL_FUNCTION_SPECIFIC_OPTIMIZATION (node))
|
||||
fputs (" function-specific-opt", file);
|
||||
if (TREE_CODE (node) == FUNCTION_DECL && DECL_INLINE (node))
|
||||
fputs (DECL_DECLARED_INLINE_P (node) ? " inline" : " autoinline", file);
|
||||
if (TREE_CODE (node) == FUNCTION_DECL && DECL_DECLARED_INLINE_P (node))
|
||||
fputs (" autoinline", file);
|
||||
if (TREE_CODE (node) == FUNCTION_DECL && DECL_BUILT_IN (node))
|
||||
fputs (" built-in", file);
|
||||
if (TREE_CODE (node) == FUNCTION_DECL && DECL_NO_STATIC_CHAIN (node))
|
||||
|
|
|
@ -2058,7 +2058,6 @@ inlinable_function_p (tree fn)
|
|||
|
||||
/* We only warn for functions declared `inline' by the user. */
|
||||
do_warning = (warn_inline
|
||||
&& DECL_INLINE (fn)
|
||||
&& DECL_DECLARED_INLINE_P (fn)
|
||||
&& !DECL_IN_SYSTEM_HEADER (fn));
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue