In theory, this should toggle the LED with about 3Hz (1MHz MCLK assumed).
BUT
Empty while/for loops are no reliable waiting loops.
Depending on the optimization, the compiler might as well remove the whole
loop, ending in your LED being toggled with ~100kHz.
You should at least add a _NOP() in
mspgcc4 is a port of the mspgcc tool chain to the GCC 4.x series of
compilers. It is available from SourceForge at
http://sourceforge.net/projects/mspgcc4/
I've taken over primary responsibility for maintaining mspgcc4 and its
associated patches to binutils, gcc, gdb, and the msp430-libc