Other Parts Discussed in Thread: MSP430F5529
What is the appropriate method for submitting bug reports? I am using Code Composer Studio Version: 6.1.1.00022 on an MSP430F5529 Launchpad development board using GNU V4.8.1 (Red Hat) compiler, running on Windows 7 64-bit.
When I select the “Optimize for space rather than speed (-Os)” option, even with Optimization level = None (-O0), a simple delay function always hangs. When I look at the disassembly, the hang is clearly due to the generation of incorrect assembly code that creates an infinite loop. I tried adding an asm("NOP") inside the delay loop to try to force no optimization, and it only changes the location of the hang. This is easily repeatable by checking / unchecking the space vs. speed checkbox. When the option is unchecked the assembly code created is functional and appears exactly as expected.
This code
Hangs here, where it can clearly be seen that there is a hard (infinite) branch to the NOP instruction.

