Dima Kogan wrote:
:
Let me know if you can replicate this. No clue as to why you can build
with the latest CVS. What if you turn on optimizations?
:
Hi Dima,
you are right, optimization immediately also reveals the problem for me:
$ msp430-gcc -Wall -mmcu=msp430x149 -O1 -o code.o code.c
code.c:2598: warning: inline function
`XE1205SendReceiveP___signalPacketReceived___runTask' given attribute
noinline
code.c:6845: warning: inline function
`XE1205SendReceiveP___signalPacketReceived___runTask' given attribute
noinline
code.c: In function `SchedulerBasicP___TaskBasic___runTask':
code.c:6880: warning: `t' might be used uninitialized in this function
code.c: In function `XE1205PhyP___Interrupt0___fired':
code.c:8992: internal error: Segmentation fault
while -mdisable-hwmul
$ msp430-gcc -Wall -mmcu=msp430x149 -O1 -mdisable-hwmul -o code.o code.c
code.c:2598: warning: inline function
`XE1205SendReceiveP___signalPacketReceived___runTask' given attribute
noinline
code.c:6845: warning: inline function
`XE1205SendReceiveP___signalPacketReceived___runTask' given attribute
noinline
makes it disappear.
Also replacing line 6863 "return &PropagationMsgPoolP___0___data[idx];"
with a simple "return 0;" solves the fault.
Anybody with more knowledge who can explain/correct the problem?
Hardy