* config/mep/mep.c (mep_can_inline_p): Correct logic, and simplify.
authordj <dj@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 11 Jul 2009 03:45:51 +0000 (03:45 +0000)
committerdj <dj@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 11 Jul 2009 03:45:51 +0000 (03:45 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@149507 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/mep/mep.c

index 50c7a1c..8cf7745 100644 (file)
@@ -1,3 +1,7 @@
+2009-07-10  DJ Delorie  <dj@redhat.com>
+
+       * config/mep/mep.c (mep_can_inline_p): Correct logic, and simplify.
+
 2009-07-10  Mark Mitchell  <mark@codesourcery.com>
 
        * config/arm/thumb2.md (thumb2_cbz): Correct computation of length
index 59dbb88..33bde90 100644 (file)
@@ -4115,14 +4115,12 @@ 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