MSP430 C/C++ Code Generation Tools v20.2.5.LTS Release Notes
Table of Contents
Long-term Support Release
The MSP430 CGT v20.2.0.LTS release is a long term support (LTS) release. This release will be supported for roughly 2 years with periodic bug fix updates.
Compiler Documentation and Information
Documentation for the “TI MSP430 Optimizing Compiler User’s Guide” and the “TI MSP430 Assembly Language User’s Guide” is available online at:
https://www.ti.com/tool/MSP-CGT
TI E2E Community
Questions concerning TI Code Generation Tools can be posted to the TI E2E Community forums. The “Development Tools” forum can be found at:
http://e2e.ti.com/support/tools
Defect Tracking Database
Compiler defect reports can be tracked at the Development Tools bug database at:
New Features:
Default file extension for compiler generated object files
The default file extensions for object files created by the compiler have changed in order to prevent conflicts when C and C++ files have the same names. Object files generated from C source files have the .c.obj extension. Object files generated from C++ source files have the .cpp.obj extension.
Optimization updates
BIC instruction optimization: The compiler now optimizes below expression to a single BIC instruction:
dst &= ~src to BIC instruction.
For below test case:
extern unsigned char src, dst;
The compiler now generates below for --opt_level=off,0-4:
void func(void)
{
dst &= ~src;
}BIC.B &src+0,&dst+0
__swap_bytes intrinsic optimization: The compiler more efficiently optimizes the __swap_bytes intrinsic.
The RTS header file intrinsics.h had a macro implementation for __swap_bytes which has been updated to instead use the more optimal __swap_bytes intrinsic. For more details, see:
TI MSP430 Optimizing Compiler User’s Guide
MISRA-C 2004 Support Deprecation
Starting with MSP430 CGT v20.2.5.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.
Resolved defects
Resolved defects in v20.2.5.LTS:
ID | Summary |
---|---|
CODEGEN-8736 | Incorrect computation of condition test involving bool value |
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-8485 | sscanf float conversion should fail and return 0 when input string starts with E or e |
CODEGEN-8389 | Including cmath causes remark: zero used for undefined preprocessing identifier “STDC_VERSION” |
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-7444 | Linker internal error when crc_table is applied to EXIDX |
Known defects
Known defects in v20.2.x.LTS:
ID | Summary |
---|---|
CODEGEN-8213 | mklib build fails when CCS is installed in a path with whitespaces |
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-4329 | Initializing unordered_map with an initializer_list fails with -o2 or higher |
CODEGEN-4323 | 1 ULP rounding error in double addition |
CODEGEN-4318 | libcxx/include/random uses unsigned for unsigned long |
CODEGEN-4305 | Compiler aborts with excessive inlining of C++ functions |
CODEGEN-4297 | Cannot take the address of std::ctype<char>::table_size |
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-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-4245 | Multiple non-variables may be declared using auto or decltype(auto) |
CODEGEN-4234 | No error generated for lambda-expression in default argument cannot capture any entity. |
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-4099 | Composing operations for valarray may fail to compile |
CODEGEN-4090 | Unimplemented core issue 475: std::uncaught_exception is not true when constructing the thrown object |
CODEGEN-4087 | wostringstream::fill(WCHAR_MAX) incorrectly sets the fill value to ' 'L. |
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-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-4026 | Non-standard partial ordering of variadic template partial specialization |
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-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-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-1476 | Incorrect value assigned to a forward reference of a symbol defined in terms of the section's PC ($) after jump expansion |
CODEGEN-1295 | MSP430 RTS rint() double routines failing for some inputs |
CODEGEN-1138 | Print a more friendly message when using a lnk.cmd with too large memory |
CODEGEN-733 | msp C++ cpp compiled with printf_support=minimal causes cout to output incorrect results |
CODEGEN-633 | Floating point addition rounding error |
CODEGEN-582 | MSP430 RTS float arithmetic functions do not round correctly |
CODEGEN-580 | C2000 RTS float arithmetic functions do not round correctly |
CODEGEN-501 | Compiler emits bogus DW_OP_reg16 for split argument |
CODEGEN-322 | Structure is not initialized correctly when using -o2 or -o3 optimization |
CODEGEN-274 | Relocation overflows for BIT instruction using 20-bit pointer |
CODEGEN-270 | Should forbid non-const objects larger than 64k in large model if –near_data=globals |
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-62 | pow(2,x) has fairly significant rounding error |
CODEGEN-60 | printf gives wrong value for pointer when its value is incremented |
CODEGEN-56 | Forward reference in .space generates an internal error |