Closed Defects in Release

ID Summary State Reported In Release Target Release Workaround Release Notes
CODEGEN-1703 Designated initializer plus struct hack hangs compiler Planned C2000_15.12.0.LTS, C2000_15.9.0.STS C2000_15.12.4.LTS
CODEGEN-1671 Arrays of Byte Peripherals or types aligned larger than their size should generate error Planned C2000_15.12.0.LTS C2000_15.12.4.LTS Do not attempt to create an array of byte peripheral objects. The C language guarantees that the size of an array is equal to the size of each element times the number of elements. Because we double the alignment of byte peripheral data types but do not change the size, this does not hold true. There would be padding in the array, which is not allowed by the standard. Underneath the hood, we use the aligned GCC attribute to change the alignment for byte peripherals. On GCC, if you try to make an array of elements whose alignment is larger than its size (see example code below), you get the following error: "9:1: error: alignment of array elements is greater than element size" However, our parser doesn’t generate an error. Instead, it just reduces the alignment of the element size silently and makes an array. We need to generate an error and document that this is not allowed, both for byte peripherals and the aligned GCC attribute.
CODEGEN-1667 Assignment to 32-bit byte peripheral from 64-bit cast to 32-bit value causes internal error Fixed C2000_15.12.0.LTS C2000_15.12.4.LTS Saving the cast value to a 32-bit temp and then assigning to the 32-bit byte peripheral will work at optimization settings of 0 and off. If a 64-bit value is cast to a 32-bit value and then assigned to a 32-bit byte peripheral type, an internal error occurs.
CODEGEN-1662 Optimizer incorrectly detects __fmin and __fmax idioms Fixed C2000_15.12.0.LTS C2000_15.12.4.LTS If you want floating-point absolute value, use fabs. However, there are other ways this bug could be triggered that have no practical workaround other than to use -Ooff
CODEGEN-1640 MISRA 19.1 misreported: #include statements should only be preceded by other preprocessor directives Planned C2000_15.12.0.LTS, C2000_15.9.0.STS C2000_15.12.4.LTS No practical workaround
CODEGEN-1634 MISRA 7.1 misreported: octal tokens in token paste Planned C2000_15.12.0.LTS, C2000_15.9.0.STS C2000_15.12.4.LTS No practical workaround
CODEGEN-1632 MISRA 15.2 misreported: switch clause unconditional break Planned C2000_15.12.0.LTS, C2000_15.9.0.STS C2000_15.12.4.LTS Put an explicit break at the end of the compound statement
CODEGEN-1534 Assembler mishandles SUBF32||MOV32 UNCF Fixed C2000_15.12.0.LTS, C2000_15.9.0.STS C2000_15.12.4.LTS As a workaround, take off the UNCF operand and the assembler handles the instruction correctly.
CODEGEN-1510 Assembler incorrectly issues warning on large constant used with MOVI32 instruction Fixed C2000_15.12.1.LTS C2000_15.12.4.LTS
SDSCM00052895 C28x --disable_dp_load_opt does not disable blocking for .ebss Fixed C2000_15.12.2.LTS C2000_15.12.4.LTS Put data in user-defined section and use --disable_dp_load_opt to prevent blocking. The C28x compiler blocks .ebss by default. --disable_dp_load_opt disables blocking for user-defined sections. However, for .ebss the flag only disables DP-load optimization but did not disable blocking.
CODEGEN-1420 Compiler mistakenly overwrites upper 32-bits to 0 by using MOVZ instruction to compute var32 |= 0x20 Fixed C2000_15.12.0.LTS C2000_15.12.4.LTS Fixed an issue where the compiler would issue a MOVZ instruction that zeroes the upper bits of an XAR register when those upper bits are needed for a future instruction.
CODEGEN-1418 64-bit bitwise op on enum gives INTERNAL ERROR: no match for ASG Fixed C2000_15.12.2.LTS, C2000_15.12.3.LTS, C2000_15.12.0.LTS, C2000_15.12.1.LTS, C2000_15.9.0.STS C2000_15.12.4.LTS Add compiler option -mf3 or higher (--opt_for_speed=3)
CODEGEN-1333 Structure assignment causes compiler to fail with INTERNAL ERROR: Decomposition error Fixed C2000_15.12.3.LTS C2000_15.12.4.LTS Replace struct assignments involving packed structures with a memcpy() call to copy the contents of the RHS of the struct assign to the LHS.
SDSCM00052894 CLA does not correctly handle certain pragmas like UNROLL which take an integer argument Fixed C2000_15.12.1.LTS C2000_15.12.3.LTS None
SDSCM00052881 unsigned array index not trucated as it should be Fixed C2000_15.12.0.LTS C2000_15.12.3.LTS Disable the optimizer with -Ooff
SDSCM00052873 Mishandled condition codes set by CLA intrinsics __mmaxf32 and __mminf32 Fixed C2000_15.12.0.LTS C2000_15.12.3.LTS
SDSCM00052833 Linker INTERNAL ERROR with object files with DWARF information compiled by IAR compiler Fixed C2000_15.12.0.LTS C2000_15.12.3.LTS Add option --compress_dwarf=off
SDSCM00052805 Decomposition error on while(*ptr++) where ptr points to volatile Fixed C2000_15.12.0.LTS C2000_15.12.2.LTS No workaround.
SDSCM00052774 Using __IQsat with destination same as one input leads to bad code Fixed C2000_15.12.0.LTS C2000_15.12.2.LTS No practical workaround
SDSCM00052737 Compiler reorders MOVDL or MOVD32 instruction with an instruction which reads the delayed memory Fixed C2000_15.12.0.LTS C2000_15.12.2.LTS None.
SDSCM00052723 Compiler seg faults with use of --opt_level=4 Fixed C2000_15.12.0.LTS C2000_15.12.1.LTS Use optimization level 3 or below.
SDSCM00052699 Compiler discards write to a volatile local struct member Fixed C2000_15.12.0.LTS C2000_15.12.2.LTS No workaround.
SDSCM00051406 Bool Support on CLA Compiler as part of STDBOOL.h Fixed C2000_15.9.0.STS
SDSCM00051315 The type _Bool is illegal by default only for CLA code Fixed C2000_15.9.0.STS Add the option --c99
SDSCM00050005 Compiler mistakenly issues MISRA diagnostic 12.9 for a float point type Fixed C2000_15.12.0.LTS C2000_15.12.3.LTS
SDSCM00039432 Must interrupt-protect RB restore in low-prority interrupt handler Fixed C2000_15.12.0.LTS C2000_15.12.2.LTS At the end of every low-priority interrupt handler function which may have enabled interrupts (possibly during a callee), add the intrinsic __disable_interrupts.
SDSCM00038327 ARM RTS libraries expose enumerations across ABI boundaries, but are marked as having no visible enumerations Fixed C2000_15.12.0.LTS When using C++ RTS functions, use --enum_type=packed, or rebuild the RTS library with the --enum_type=int option.

Generated on Wed Nov 30 13:19:52 2016