From f9fa0459195973440fbd7c4de17ad64140b9ea68 Mon Sep 17 00:00:00 2001 From: rth Date: Fri, 26 Jun 2009 18:10:03 +0000 Subject: * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148980 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/builtins.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'gcc/builtins.c') diff --git a/gcc/builtins.c b/gcc/builtins.c index 8476f00e422..7fdb4f03428 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)) -- cgit v1.2.1