Nothing compiler specific at all required, just standard C...
#define WDTCTL (*((volatile unsigned short *)0x0120))
#define P1DIR (*((volatile unsigned char *)0x0022))
...
WDTCTL = 0x5A80;
...
P1DIR |= 0x01;
P1OUT |= 0x01;
P1DIR &= ~0x02;
Then check your disassembly to make sure it worked.
f8b4: b2 40 80 5a mov #23168, &0x0120 ;#0x5a80
...
f8ca: d2 d3 22 00 bis.b #1, &0x0022 ;r3 As==01
f8ce: d2 d3 21 00 bis.b #1, &0x0021 ;r3 As==01
f8d2: f2 f0 fd ff and.b #-3, &0x0022 ;#0xfffd