I am using CCS6.1.0 and some third party source code that builds based on the compiler definition. When using the 5.1.x compilers, the compiler is able to resolve the following line of code and define the correct options inside the elif statement.
#elif (defined(__TMS470__)
When I select any of the 5.2.x version compilers, this line no longer is defined. In reading through the compiler documentation for 5.2 (http://www.ti.com/lit/ug/spnu151j/spnu151j.pdf) the old TMS470 is not in the predefined ARM macro names in section 5.2.1 of the document. There is a note at the end of the list that says:
NOTE: Macros with names that contain __TI_ARM are duplicates of the older __TI_TMS470 macos. For example, __TI_ARM_V7__ is the newer name for __TI_TMS470_V7__ macro. The old macro names still exist and can continue to be used.
The last note does not appear to be correct but even if I change the line of code to the following:
#elif (defined(__TMS470__) || defined(__TI_ARM__)) || defined(__TI_ARM_VM4))
it still doesn't compile. Why can't I get the 5.2.x compilers to work in my project? The maximum version I can use is 5.1.11 which defines the __TMS470__ so it will build. Here is the General properties page.
