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...@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