Using alloca in function parameters buggy or works ???

Jeffrey A Law law@redhat.com
Thu Sep 16 16:35:00 GMT 2004


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




More information about the Gcc mailing list