aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2009-07-10 23:45:51 -0400
committerDJ Delorie <dj@gcc.gnu.org>2009-07-10 23:45:51 -0400
commit82e45095505d635a123bc8928e46f6b25d5bbb4f (patch)
tree696537eea4abe44a19a9d9afb682201775c1caff /gcc
parent34b736c1556830c95e2d06618855b6a314b957e7 (diff)
downloadgcc-82e45095505d635a123bc8928e46f6b25d5bbb4f.zip
gcc-82e45095505d635a123bc8928e46f6b25d5bbb4f.tar.gz
gcc-82e45095505d635a123bc8928e46f6b25d5bbb4f.tar.bz2
* config/mep/mep.c (mep_can_inline_p): Correct logic, and simplify.
From-SVN: r149507
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/config/mep/mep.c8
2 files changed, 7 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 50c7a1c..8cf7745 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/config/mep/mep.c b/gcc/config/mep/mep.c
index 59dbb88..33bde90 100644
--- a/gcc/config/mep/mep.c
+++ b/gcc/config/mep/mep.c
@@ -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