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: Using alloca in function parameters buggy or works ???


On Thu, 2004-09-16 at 09:58, Andreas Schwab wrote:
> "Kaveh R. Ghazi" <ghazi@caip.rutgers.edu> writes:
> 
> > 2.  Does my example above trigger the bug?
> 
> I think the problem was that alloca'ing the memory could get mixed
> together with parameter passing (when they are passed on stack).  So it
> probably depends on the order the parameters are set up and whether the
> alloca'd memory is the first parameter pushed on stack.
It also probably depends on the types of the other parameters
(consider parameters which must be constructed on the stack).

jeff



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