ARM-CGT: Including <_atomic.h> issues remarks

Part Number: ARM-CGT
Other Parts Discussed in Thread: TMS570LS3137

Tool: TI CGT ARM 20.2.4.LTS 

Target: TMS570LS3137 

If <array> file is included into a .cpp file, it later includes <_atomic.h>, compilation of which issues the following remarks:

 "C:\ti\ccs1020\ccs\tools\compiler\ti-cgt-arm_20.2.4.LTS\bin\..\include\_atomic.h", line 97: remark #880-D: parameter "ptr" was never referenced

"C:\ti\ccs1020\ccs\tools\compiler\ti-cgt-arm_20.2.4.LTS\bin\..\include\_atomic.h", line 103: remark #880-D: parameter "ptr" was never referenced  

Including <_atomic.h> file into a .c file issues additional remark: 

"C:/ti/ccs1020/ccs/tools/compiler/ti-cgt-arm_20.2.4.LTS/include/_atomic.h", line 410: remark #270-D: declaration may not appear after executable statement in block  

I consider this as a bug for the compiler, and it should be resolved by TI.

  • I am unable to reproduce this problem.  Is it practical for you to submit this test case?  It does not need to be a complete program.  Please supply one C++ source file which has this problem.  Please make sure this file only includes files, like <array>, from the include directories that come with the compiler.  Show all the build options exactly as the compiler sees them.

    Thanks and regards,


  • HI, George.

    I cannot provide the exact data now (will do it tomorrow), but the only non-standard option was - - issue_remarks.

  • I can reproduce the problem now.  This is a known problem.  The entry EXT_EP-10116 was filed to have this issue addressed. You are welcome to follow it at that link.

    Thanks and regards,


  • OK, understood

    A couple of comments related:

    1. The issue that you pointed to does not mention _atomic.h, so I think it is worth adding more data to it.

    2. If the cpp-libs are compiled with --preproc_dependency --issue_remark options (important: without —preproc_with_compile), a bunch of other similar remarks are issued 

    "C:/ti/ccs1020/ccs/tools/compiler/ti-cgt-arm_20.2.4.LTS/include/libcxx/__debug", line 120: remark #195-D: zero used for undefined preprocessing identifier "_LIBCPP_DEBUG_LEVEL" "C:/ti/ccs1020/ccs/tools/compiler/ti-cgt-arm_20.2.4.LTS/include/libcxx/iterator", line 1260: remark #195-D: zero used for undefined preprocessing identifier "_LIBCPP_DEBUG_LEVEL"

    Thanks, George