Tool/software: TI C/C++ Compiler
We've moved one of our work stations from CCS V6.0.1.00040 with compiler C2000 TI v6.2.7 to CCS V6.2.0.00050 and compiler c2000_15.12.3.LTS, it compiles and runs fine on the early vertsion but on the newer version we are getting compiler failure as shown below:
>> Compilation failure
source/subdir_rules.mk:91: recipe for target 'source/Phase_A_Controller.obj' failed
"C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/include/_defs.h", line 187: warning #328-D: "inline" is not allowed
"C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/include/_defs.h", line 188: error #66: expected a ";"
"C:/ti/ccsv6/tools/compiler/c2000_15.12.3.LTS/include/math.h", line 252: warning #12-D: parsing restarts here after previous syntax error
1 error detected in the compilation of "../source/Phase_A_Controller.c".
gmake: *** [source/Phase_A_Controller.obj] Error 1
gmake: Target 'all' not remade because of errors.
looking at _defs.h, which is a TI file, the relevant code is shown below:-
187 _CODE_ACCESS __inline int __isfinitef(float f)
188 { return __FLOAT_BIASED_EXP_IS_MAX(f) == 0; }
I can't see anything obvious and looking through the forums I again can't find any reference to why 'inlines' are not allowed. Copying the older compiler into the compiler folder with the new CCS version and selecting this as the compiler options works, but I'm not happy about releasing this until I find out what is happening.
Best regards
Tony