-
Bug
-
Resolution: Unresolved
-
Low
-
Code Generation Tools
-
CODEGEN-8576
-
-
default
The attached source file has this function ...
static void writeData(uint8_t* pbyData, uint64_t sizeSize) { for(uint64_t x = 0; x < sizeSize; x++) { pbyData[x] = (uint8_t)x; } }
The function is invoked with the constant value 0x100000000 for the second argument sizeSize. Under -o3, the compiler is able to determine that the loop iterates 0x100000000 times. Something then goes wrong as the optimizer part of the compiler processes this very large iteration count.
% cl7x -o3 main.cpp >>>> Optimizer terminated abnormally >>>> in function main() >>>> in file "main.cpp" This is caused by a defect in the TI C/C++ Optimizer. TI Customer Support may be able to suggest a workaround to avoid this. Upgrading to the newest version of the compiler may fix this problem. Contact TI in the E2E support forums at http://e2e.ti.com under "Development Tools", "TI C/C++ Compiler". See the link titled "Submitting an issue". We need to see this ENTIRE error message and a complete, reproducible test case including ALL of the command-line options. Include the .pp file created by option --preproc_with_comment >> Compilation failure