I am using an MSP430G2955 and writing the code using CCS with the MSP430-GCC compiler. In the past with GCC under linux I have used the following line of code with no problems.
P4OUT &= ~BIT0+BIT1;
It would clear bits 0 and 1 and leave all others unchanged. However while using the GCC that comes with CCS version 6.1.0.00104, this line of code is clearing all Port 4 output bits. I changed the code to
P4OUT &= ~BIT0;.
P4OUT &= ~BIT1;
It now does what I want it to do. But my question is has something changed in GCC that caused this, was it intentional, and what other changes have been made.