ARM C/C++ Code Generation Tools v18.12.8.LTS Release Notes

Table of Contents


1 Support Information



1.1 List of Resolved and Known Defects



Resolved defects


ID Summary
CODEGEN-8736 Incorrect computation of condition test involving bool value
CODEGEN-8681 32-bit function parameters following 64-bit enum parameter are corrupted
CODEGEN-8640 Incrementing a volatile bit-field leads to corrupted code
CODEGEN-8589 Compiler intermittently crashes on switch with 20k cases
CODEGEN-8538 Compiler does not honor attribute aligned when applied to function
CODEGEN-8529 Cortex Thumb mode internal error when using intrinsic __curpc
CODEGEN-8485 sscanf float conversion should fail and return 0 when input string starts with E or e
CODEGEN-8403 Calling function expects struct floating point return value in wrong register for big-endian ARM targets with float support
CODEGEN-8389 Including cmath causes remark: zero used for undefined preprocessing identifier “STDC_VERSION
CODEGEN-8154 The <strings.h> functions aren't declared extern “C”
CODEGEN-8100 Compiler does not account for wraparound when different increment type added to signed int
CODEGEN-7956 Compiler incorrectly elides short-circuit behavior of && when right operand might invoke undefined behavior
CODEGEN-7778 Remove –asm_includes as CCS option
CODEGEN-5735 Spurious warning when attribute((noinline)) applied to inline definition of member function
CODEGEN-1495 ARM compiler incorrectly puts CPSIE and CPSID instructions into an IT block

Open defects


ID Summary
CODEGEN-8576 Loop that iterates a very large number of times causes compiler to fail with: Optimizer terminated abnormally
CODEGEN-8400 Incorrect handling of floating point constant -0.0
CODEGEN-6509 Compiler error: no instance of function template matches the argument list
CODEGEN-6070 Erroneous “redeclared with incompatible type” involving two tagless structs with same form
CODEGEN-5179 When a symbol is remapped, DW_TAG_TI_branch/DW_AT_name is not updated
CODEGEN-5078 Simple syntax error causes assembler to fail with INTERNAL ERROR
CODEGEN-4985 Typo on ULP Advisor message
CODEGEN-4298 Internal error when passing a temporary array of objects
CODEGEN-4297 Cannot take the address of std::ctype<char>::table_size
CODEGEN-4296 Undefined symbol isblank with -g or -ooff
CODEGEN-4290 wstring runtime failure - likely bug in swprintf
CODEGEN-4281 Unexpected type returned by bitset [] operator
CODEGEN-4276 std::multimap::clear is not noexcept
CODEGEN-4275 std::num_get does not parse floating-point strings correctly
CODEGEN-4259 noexcept(typeid(d)) runtime fail on polymorphic class type
CODEGEN-4258 deeply nested lambda functions hang the codegen
CODEGEN-4250 regex_constants::ECMAScript not expected to be 0
CODEGEN-4248 armcl allows non-default arguments to be specified after default arguments
CODEGEN-4247 Internal error when assigning default arguments to a parameter pack
CODEGEN-4246 armcl allows illegal attribute in friend declarations
CODEGEN-4245 Multiple non-variables may be declared using auto or decltype(auto)
CODEGEN-4244 armcl errors on legal constexpr constructor call
CODEGEN-4234 No error generated for lambda-expression in default argument cannot capture any entity.
CODEGEN-4228 armcl fails to flag an inconsistent use of alignas between a declaration and definition of an object
CODEGEN-4203 Parser errors on empty enum declaration
CODEGEN-4158 TI compiler does not emit clang error: constexpr function never produces a constant expression
CODEGEN-4157 error with using constexpr for return from end() with empty std::initializer_list
CODEGEN-4132 cannot find matching “==” operator definition
CODEGEN-4124 Failure to defer access control checks
CODEGEN-4122 decltype cannot be used as a destructor name
CODEGEN-4119 user-supplied allocator function is not called
CODEGEN-4105 cannot find definition of “>=” operator
CODEGEN-4099 Composing operations for valarray may fail to compile
CODEGEN-4091 Incomplete class type when using various members of <iterator>
CODEGEN-4090 Unimplemented core issue 475: std::uncaught_exception is not true when constructing the thrown object
CODEGEN-4076 Exception propagating out of noexcept function does not call std::terminate
CODEGEN-4072 Unimplemented core issue 1769: Catching a thrown derived class by reference to base clas
CODEGEN-4071 <regex> never throws error_ctype
CODEGEN-4069 std::linear_congruential_engine doesn't support 8-bit results
CODEGEN-4058 std::function<T>::target_type() should return typeid(void) if target is empty
CODEGEN-4050 shared_ptr::get_deleter() should return the original deleter class without copying
CODEGEN-4044 libcxx istreambuf_iterator points to end of string instead of character past match
CODEGEN-4035 Compiler allows constant subtraction between pointers to different objects
CODEGEN-4032 wofstream << operator unexpected termination
CODEGEN-4026 Non-standard partial ordering of variadic template partial specialization
CODEGEN-4015 Access of const static member through pointer is not a constant expression.
CODEGEN-4002 Undefined behavior on lambda capturing constexpr by reference
CODEGEN-4001 Unimplemented core issue 588: Unqualified name lookup examines dependent base class
CODEGEN-4000 Core 1601: Overload resolution for enum with fixed type
CODEGEN-3999 Unimplemented core issue 1374: Conversion sequence ranks qualification before reference binding
CODEGEN-3998 Unimplemented core issue 1951: cv-qualified void and scalar types are not literal types
CODEGEN-3993 Constant initialiation may take place before dynamic initialization
CODEGEN-3991 We do not issue diagnostics if an allocation function throws a non bad_alloc exception
CODEGEN-3966 slice_array assignment failures
CODEGEN-3965 Invalid conversion on static_cast from T1 to rvalue reference of T2
CODEGEN-3964 Unimplemented core issue 1467: Overloads and initializations with single-element initializer_list
CODEGEN-3963 Unimplemented core issue 591: Name lookup in dependent base class that is also the current instantiation
CODEGEN-3962 Core Issue 1804 unimplemented: friend declaration does not apply to class template specializations
CODEGEN-3961 Pack expansion in template parameter list fails
CODEGEN-3959 std::reference_wrapper doesn't define argument_type for classes containing a typedef member named argument_type
CODEGEN-3954 Problem with std::swap and <tuple>
CODEGEN-3953 scoped_allocator_adaptor can't be explicitly instantiated with two arguments
CODEGEN-3951 Spurious error on bypassing initialization of trivially constructible objects
CODEGEN-3948 Spurious syntax error on alignas in alias declaration
CODEGEN-3947 Spurious error on unevaluated use of undefined constexpr function
CODEGEN-3946 Spurious error on global qualifier of struct template
CODEGEN-3944 Raw string d-char-sequence isn't supported
CODEGEN-3941 operator<<(std::basic_ostream<K,T>&, const std::error_code&) is not defined in system_error
CODEGEN-3938 std::rethrow_if_nested does not have standard signature
CODEGEN-3937 nested_exception::rethrow_nested() not supported
CODEGEN-3916 C++ header file cuchar is not provided in libc++
CODEGEN-1499 #pragma LOCATION and palign do not work together
CODEGEN-1498 Automatic library build fails when an exact library name is used
CODEGEN-1484 The armhex command does not handle spaces in the name of the output binary
CODEGEN-1101 When the imaginary part of z is INFINITY, cprojf(z) is NOT equivalent to INFINITY + I * copysign(0.0, cimagf(z))
CODEGEN-1059 Compiler does not respect partial overrides in C99 designated initializers
CODEGEN-1026 Disable diagnostic 1558 (–float_operations_allowed diagnostic) in standard header files
CODEGEN-989 Should accept “LDRD R8,[R1]” in Thumb-2 mode
CODEGEN-975 Missing half-precision float conversion functions
CODEGEN-974 Missing __aeabi_read_tp
CODEGEN-972 Missing AEABI_COMPATIBILITY_MODE link-time constants
CODEGEN-967 Assembler accepts but mistranslates BLLT in v7 thumb mode
CODEGEN-966 Should allow “ADD R0, R1, #0xfff” for v6m0
CODEGEN-962 Should accept 2-operand SUB SP in Thumb1/UAL mode
CODEGEN-927 Should accept 2-operand add in ARM mode
CODEGEN-890 The .label assembler directive should not be accepted when assembling for ELF.
CODEGEN-830 __aeabi_dcmpun returns 1 for Inf and -Inf
CODEGEN-753 Warning generated when using __curpc intrinsic on Thumb 2
CODEGEN-662 Double constant expression may be incorrectly truncated if assigned to a narrow integer type
CODEGEN-573 Cortex-M0 library lacks uread4, etc.
CODEGEN-322 Structure is not initialized correctly when using -o2 or -o3 optimization
CODEGEN-316 The _ssat16 intrinsic allows literals in the range of 0-31, but the SSAT16 instruction only accepts values from 1-16
CODEGEN-315 _ssatl intrinsic allows 3rd argument to be 0 resulting in an assembler error.
CODEGEN-299 ARM assembler does not issue a warning for PC-relative loads when –embedded_constants=off
CODEGEN-235 Section relative ELF symbol values in partially linking object files should hold the section offset for the symbol
CODEGEN-104 Linker gives misleading warning when dot expressions used in SECTION directive for .stack section
CODEGEN-63 DWARF does not correctly represent variables stored in register pairs
CODEGEN-56 Forward reference in .space generates an internal error

1.2 Compiler Wiki


A Wiki has been established to assist developers in using TI Embedded Processor Software and Tools. Developers are encouraged to read and contribute to the articles. Registered users can update missing or incorrect information. There is a large section of compiler-related material. Please visit:

https://processors.wiki.ti.com/index.php?title=Category:Compiler


1.3 Compiler Documentation


The “TI ARM Optimizing Compiler User’s Guide” and the “TI ARM Assembly Language User’s Guide” can be downloaded from:

https://www.ti.com/tool/ARM-CGT


1.4 TI E2E Community


Questions concerning TI Code Generation Tools can be posted to the TI E2E Community forums. The Code Composer Studio support forum can be found at:

http://e2e.ti.com/support/tools/ccs/f/81


1.5 Defect Tracking Database


Issues filed against the TI compilers can be searched in the Code Generation Tools Defect Database.


1.6 Long Term Support release


The ARM CGT v18.12.x.LTS release is a long term support (LTS) release. This release will be supported for roughly 2 years with periodic bug fix updates.


2 Linker generated ECC option


In previous versions, linker generated ECC has been enabled via an ECC specifier on memory ranges in the linker command file. This makes it difficult for TI to provide linker command files with ECC specified because users need the ability to enable/disable the support. Starting with this version, users can enable/disable ecc support via the –ecc=[on|off] linker option. Existing users of ECC will need to specify –ecc=on


3 New utilies: objcopy, objdump, readelf, size


This release now includes below objcopy, objdump, readelf, and size utilities: arm-none-eabi-objcopy.exe arm-none-eabi-objdump.exe arm-none-eabi-readelf.exe arm-none-eabi-size.exe

NOTE: Above are windows executables names. Unix removes the exe suffix.


4 2011 version of the C language (C11)


The compiler supports the 2011 version of the C language. Compiling with the –c11 option causes the compiler to conform to the ISO/IEC 9899:2011 C standard. The compiler supports some features of C11 in the default relaxed ANSI mode.

C11 atomic operations are supported in default relaxed ANSI mode and in C11 mode as follows:

On ARM V7A8 (Cortex-A8), ARM V7M3 (Cortex-M3), ARM V7M4 (Cortex-M4), ARM V7R4 (Cortex-R4), or ARM V7R5 (Cortex-R5)) an atomic operation is implemented using processor supported exclusive access instructions.

On ARM V6M0 (Cortex-M0), an atomic operation is implemented by disabling interrupts across the operation.

On ARM V4 (ARM7), ARM V5e (ARM9E), or ARM V6 (ARM11) the atomic operations are not supported.

C11 threads.h is not supported.


5 MISRA-C 2004 Support Deprecation


Starting with ARM CGT v18.12.8.LTS, MISRA-C 2004 checking support has been deprecated. The existing MISRA checking functionality will remain in further patch versions of this compiler stream as is, but no further issues will be addressed.