This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler: v8.3.5 and v8.3.6

Other Parts Discussed in Thread: MATHLIB

Tool/software: TI C/C++ Compiler

I am upgrading CCS version from v6.1.2 to version 9.3.0 or version 10.1.0. Everything is fine with old compiler v8.1.4. until I use the newer C/C++ compiler v8.3.5 or v8.3.6. There are lots of additional warning messages: "warning: statement is unreachable". I tried to find out the warning id number with -pden compiler option. The option works for the "white space" warning, which gives a  warning number #1921-D. However, there is no warning number for "statement is unreachable". Therefore, I can't suppress the warning. The file has the warnings is a generated file in the folder "/(project name)/(build configuration)/configPkg/package/cfg". Please help. Thanks.

Garry

  • I tried both #112 and #111. Neither of them will work.

  • Specific versions of TI-RTOS are only documented to work with specific versions of the compiler.  Please make sure you are not violating this constraint.  For now, I presume it is OK to use version 8.3.x with the version of TI-RTOS you use.  

    This ...

    gyti said:
    lots of additional warning messages: "warning: statement is unreachable"

    ... is not typical.  I suspect something is configured incorrectly.  Unfortunately, I can't say what the error might be.

    Adding the build option --diag_suppress=112 should suppress these diagnostics.  Have you added that option?  What happened?

    Thanks and regards,

    -George

  • I think my TI RTOS version (6.45.0.20) is too old  for the new compiler (v8.3.6) which is more aggressive on giving warnings. After installed the SDK from the link: https://software-dl.ti.com/processor-sdk-rtos/esd/C665x/latest/index_FDS.html

    The "statement is unreachable" warnings are gone. There are two other warnings in addition to the "white space" warning.

    Description Resource Path Location Type
    #48-D incompatible redefinition of macro "FALSE" (declared at line 312 of "C:/ti/ccs1010/xdctools_3_61_02_27_core/packages/xdc/std.h") .ccsproject /XMP160 line 56, external location: C:\ti\mathlib_c66x_3_1_2_4\packages\ti\mathlib\src\common\common.h C/C++ Problem

    Description Resource Path Location Type
    #48-D incompatible redefinition of macro "TRUE" (declared at line 315 of "C:/ti/ccs1010/xdctools_3_61_02_27_core/packages/xdc/std.h") .ccsproject /DMP64 line 55, external location: C:\ti\mathlib_c66x_3_1_2_4\packages\ti\mathlib\src\common\common.h C/C++ Problem

    Description Resource Path Location Type
    #1921-D white space is required between the macro name "CSL_GEM_CPU" and its replacement text .ccsproject /XMP160 line 1320, external location: C:\ti\pdk_C6657_1_1_2_6\packages\ti\csl\cslr_device.h C/C++ Problem

    This is more manageable now. It will be great if you can have the xdctools team to get rid of the warning. Thank you for your help.

  • The image in your post is not visible.  The usual reason is discussed in this FAQ.  Please fix the problem by either editing your last post, or creating a new post.  Then I'll notify the TI-RTOS experts.

    Thanks and regards,

    -George