This is the mail archive of the gcc@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]

Re: how to use expand_builtin_alloca


Hi Ian

Thanks for reply.

Is it possible to override alloc to do the same thing as
expand_buitlin_alloca in application codes?



On Mon, 2009-07-13 at 14:17 -0700, Ian Lance Taylor wrote:
> Janboe Ye <yuan-bo.ye@motorola.com> writes:
> 
> > normally gcc will use expand_builtin_alloca to handle variable array.
> > But mudflap will force this function to return immediately to invoke
> > alloca explicit.
> >
> > Is there some way to still use expand_builtin_alloca without changing
> > gcc source code?
> 
> mudflap can't check accesses to memory allocated using alloca unless it
> overrides __builtin_alloca.  So if I understand your question correctly,
> the answer is no.  Although, of course, you could simply not use mudflap
> for the code in question.
> 
> Ian


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