[CELT-dev] Another Error For TI C55x C Compiler

Bob Bang bob.bang2 at gmail.com
Fri Mar 25 13:24:58 PDT 2011


hey guys, I am using the tip of Git and attempting to compile for a C55x
DSP.  I am running into a couple compile errors and have found the source of
the issue.

The errors:
"celt.c", line 957: error: declaration may not appear after executable
statement in block

as well as

"celt.c", line 2303: error: declaration may not appear after executable
statement in block

Both of these instances are pointing to the code:
"ALLOC_STACK;
SAVE_STACK;"

this has to do with the not using VAR_ARRAYS nor USE_ALLOCA, in this
scenario the #define's for ALLOC_STACK and SAVE_STACK are:

#define ALLOC_STACK (global_stack = (global_stack==0) ?
celt_alloc_scratch(GLOBAL_STACK_SIZE) : global_stack)
#define SAVE_STACK char *_saved_stack = global_stack;

so obviously, having the executable of ALLOC_STACK prior to SAVE_STACK won't
work.

not quite sure how to get around this, any ideas?

thanks

Bob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/opus/attachments/20110325/186fa21d/attachment-0002.htm 


More information about the celt-dev mailing list