[vorbis-dev] alloca() problem with CodeWarrior

Alan MacDonald newslists at warpzillion.com
Tue Mar 12 21:16:41 PST 2002



> The problem I am having now is that the CodeWarrior 5.0 compiler has a bug
> with alloca(). It allocates the area on the stack but, under some
> circumstances, it does not restore the stack pointer at the end of the
> routine. You can imagine what happens next. This happens in
> vorbis_lpc_predict(). I have tried different optimization levels,
> and tried
> making arbitrary changes to the code to see if the compiler could
> be tricked
> into compiling correct code but to no avail.

If you're really stuck, you could use the heap, but the sucky part is you
have to track down all the alloca's and make sure you have frees in the exit
code, may not be very fun to do as there are alloca's scattered all over
vorbis.

Later,
Alan

<p><p><p><p><p><p><p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Vorbis-dev mailing list