This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software: TI C/C++ Compiler
I am getting error #18 expected a ")", with the following C code in a header file.
#pragma FUNC_ALWAYS_INLINE(func_svc0)
static inline void func_svc0(unsigned int x)
{
args[0] = x;
__asm(" push {lr} ");
__asm(" mov r1,pargs");
__asm(" svc #0");
__asm(" pop {lr} ");
}
#18 expected a ")" for the above. If I remove the func name from the pragma line I get a warning:
#830-D error processing pragma FUNC_ALWAYS_INLINE, verify format .
Compiler TI v5.2.7 for ARM, -O0
Unfortunately, I am unable to reproduce the problem. Please submit a test case as described in the article How to Submit a Compiler Test Case.
Thanks and regards,
-George