This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[mep] fix can_inline_p
- From: DJ Delorie <dj at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 10 Jul 2009 23:45:54 -0400
- Subject: [mep] fix can_inline_p
Committed. So much for re-using a function previously called
"mep_disallow_inlining_p" ;-)
* config/mep/mep.c (mep_can_inline_p): Correct logic, and simplify.
Index: config/mep/mep.c
===================================================================
--- config/mep/mep.c (revision 149506)
+++ config/mep/mep.c (working copy)
@@ -4112,20 +4112,18 @@ mep_function_attribute_inlinable_p (cons
static bool
mep_can_inline_p (tree caller, tree callee)
{
if (TREE_CODE (callee) == ADDR_EXPR)
callee = TREE_OPERAND (callee, 0);
- if (TREE_CODE (callee) == FUNCTION_DECL
- && DECL_DECLARED_INLINE_P (callee)
- && !mep_vliw_function_p (caller)
+ if (!mep_vliw_function_p (caller)
&& mep_vliw_function_p (callee))
{
- return true;
+ return false;
}
- return false;
+ return true;
}
#define FUNC_CALL 1
#define FUNC_DISINTERRUPT 2