This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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
 
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]