re PR middle-end/25446 (-fpic/-fPIC failure in gcc.dg/vect/vect-ifcvt-9.c)

PR middle-end/25446
	* c-objc-common.c (c_cannot_inline_tree_fn): Check for an
	always_inline attribute on the function decl.

From-SVN: r127163
This commit is contained in:
Nathan Froyd 2007-08-02 14:42:53 +00:00 committed by Nathan Froyd
parent d236f595e8
commit 50926624ca
2 changed files with 11 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2007-08-02 Nathan Froyd <froydnj@codesourcery.com>
PR middle-end/25446
* c-objc-common.c (c_cannot_inline_tree_fn): Check for an
always_inline attribute on the function decl.
2007-08-02 Nathan Froyd <froydnj@codesourcery.com>
PR middle-end/25445

View File

@ -72,9 +72,9 @@ c_cannot_inline_tree_fn (tree *fnp)
&& DECL_INLINE (fn)
&& DECL_DECLARED_INLINE_P (fn)
&& !DECL_IN_SYSTEM_HEADER (fn));
tree always_inline = lookup_attribute ("always_inline", DECL_ATTRIBUTES (fn));
if (flag_really_no_inline
&& lookup_attribute ("always_inline", DECL_ATTRIBUTES (fn)) == NULL)
if (flag_really_no_inline && always_inline == NULL)
{
if (do_warning)
warning (OPT_Winline, "function %q+F can never be inlined because it "
@ -84,7 +84,9 @@ c_cannot_inline_tree_fn (tree *fnp)
/* Don't auto-inline anything that might not be bound within
this unit of translation. */
if (!DECL_DECLARED_INLINE_P (fn) && !targetm.binds_local_p (fn))
if (always_inline == NULL
&& !DECL_DECLARED_INLINE_P (fn)
&& !targetm.binds_local_p (fn))
{
if (do_warning)
warning (OPT_Winline, "function %q+F can never be inlined because it "