I was looking at slau132i.pdf, the "MSP430 Optimizing C/C++ Compiler v 4.3 User's Guide", section 5.11.19 "The NOINIT and PERSISTENT Pragmas".
There, it states to use the same constructs for CCS & IAR, though slightly different variants for C and C++...
However, for gcc, the suggestion is to use:
int x __attribute__((noinit));
However, gcc gives a warning when I use this construct:
'noinit' attribute directive ignored [-Wattributes]
...whereas, the construct I used to always use with gcc
int x __attribute__((section(".noinit")));
...works fine, i.e. places the declared variable in the correct noinit sections as verified by the map files...
Am I missing something?