aboutsummaryrefslogtreecommitdiff
path: root/gcc/builtins.c
diff options
context:
space:
mode:
authorOlatunji Ruwase <tjruwase@google.com>2009-06-26 18:10:03 +0000
committerRichard Henderson <rth@gcc.gnu.org>2009-06-26 11:10:03 -0700
commitefb303b1e80ea45e0f4595cea31f2934d7af16f8 (patch)
treec678b61dfc527900843787a7f2b7ab998a25fa29 /gcc/builtins.c
parent947e21c1fb25286b3c5e63fc3cd19c4318ee3672 (diff)
downloadgcc-efb303b1e80ea45e0f4595cea31f2934d7af16f8.zip
gcc-efb303b1e80ea45e0f4595cea31f2934d7af16f8.tar.gz
gcc-efb303b1e80ea45e0f4595cea31f2934d7af16f8.tar.bz2
builtins.c (expand_builtin_alloca): Handle builtin alloca that is marked not to be inlined.
* builtins.c (expand_builtin_alloca): Handle builtin alloca that is marked not to be inlined. Remove flag_mudflap use. * tree-mudflap.c: Rename mf_xform_derefs to mf_xfrom_statements. (mf_xform_statements): Mark builtin alloca calls as un-inlineable. From-SVN: r148980
Diffstat (limited to 'gcc/builtins.c')
-rw-r--r--gcc/builtins.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/builtins.c b/gcc/builtins.c
index 8476f00..7fdb4f0 100644
--- a/gcc/builtins.c
+++ b/gcc/builtins.c
@@ -5182,10 +5182,8 @@ expand_builtin_alloca (tree exp, rtx target)
rtx op0;
rtx result;
- /* In -fmudflap-instrumented code, alloca() and __builtin_alloca()
- should always expand to function calls. These can be intercepted
- in libmudflap. */
- if (flag_mudflap)
+ /* Emit normal call if marked not-inlineable. */
+ if (CALL_CANNOT_INLINE_P (exp))
return NULL_RTX;
if (!validate_arglist (exp, INTEGER_TYPE, VOID_TYPE))