Bug in latest IAR MSP430 compiler optimization???



Has anyone else observed that the latest kickstart MSP430 compiler
from IAR has an extremely serious code generation bug when configured
with optimizations=high,size?

IAR C/C++ Compiler for MSP430
V4.10E/W32 [Kickstart] (4.10.5.3)
C:\Program Files\IAR Systems\Embedded Workbench 5.0\430\bin\icc430.exe
2/15/2008 11:03:06 AM, 15015936 bytes

I have a test case that demos the problem perfectly, but it's tied to
specific hardware. The symptom is that a pointer, if declared locally,
is being sent off into random-land after one iteration of a loop. If
the same declaration is moved out into global scope, or if
optimization is turned off, the problem disappears. Target is
MSP430F2012.

I haven't yet groveled through the assembly output to see exactly what
the difference between the two output flavors is. But this is such an
astoundingly show-stopping bug I'm appalled it escaped.
.



Relevant Pages

  • Re: Bug in latest IAR MSP430 compiler optimization???
    ... fromIARhas an extremely serious code generation bug when configured ... IARC/C++ Compiler for MSP430 ... I haven't yet groveled through the assembly output to see exactly what ...
    (comp.arch.embedded)
  • Re: Bug in latest IAR MSP430 compiler optimization???
    ... IAR C/C++ Compiler for MSP430 ... I haven't yet groveled through the assembly output to see exactly what ... astoundingly show-stopping bug I'm appalled it escaped. ...
    (comp.arch.embedded)
  • Re: Bug in latest IAR MSP430 compiler optimization???
    ... IAR C/C++ Compiler for MSP430 ... I haven't yet groveled through the assembly output to see exactly what ... astoundingly show-stopping bug I'm appalled it escaped. ... But if it is a real bug, boil it down to some minimal test code and post the code, the compiler options, and the generated assembly. ...
    (comp.arch.embedded)