Hi,
when i use
# ifndef __FUNCTION__
# define __FUNCTION__ __func__
# endif
before
_BIC_SR_IRQ (LPM4_bits); // line 42
mpsgcc reports
signal.c:42: syntax error before "__func__"
although i can find no reason why the define should be an error
and the ifndef block works without problems on PC and ARM9
in kernel and user space.
I reduced the problem to this minimal example file tmp.c:
# include <io.h>
void
kernel_panic (void)
{
# ifndef __FUNCTION__
# define __FUNCTION__ __func__
# endif
_BIC_SR_IRQ (LPM4_bits);
return;
}
and i compiled with
msp430-gcc -mmcu=msp430x168 -O2 -Wall -g -c -o tmp.o tmp.c
Any ideas what's wrong?
Regards,
Rolf