This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler: c2000_16.9.5.LTS Compiler at -O1 but fails at -O2

Genius 5910 points

Tool/software: TI C/C++ Compiler

Compiler at -O1 and -O2 no change in the code: QuadRootsCode.cpp'

'Building file: ../QuadRootsCode.cpp'
'Invoking: C2000 Compiler'
"D:/ti/ccs700/ccsv7/tools/compiler/ti-cgt-c2000_16.9.5.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla0 --float_support=fpu32 --vcu_support=vcu0 -O1 --include_path="I:/workspace_v7/Digitalfilters" --include_path="D:/ti/ccs700/ccsv7/tools/compiler/ti-cgt-c2000_16.9.5.LTS/include" --advice:performance=all --define=FLASH -g --c99 --c++03 --cpp_default --float_operations_allowed=all --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="QuadRootsCode.d_raw"  "../QuadRootsCode.cpp"
'Finished building: ../QuadRootsCode.cpp'

'Building file: ../QuadRootsCode.cpp'
'Invoking: C2000 Compiler'
"D:/ti/ccs700/ccsv7/tools/compiler/ti-cgt-c2000_16.9.5.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla0 --float_support=fpu32 --vcu_support=vcu0 -O2 --include_path="I:/workspace_v7/Digitalfilters" --include_path="D:/ti/ccs700/ccsv7/tools/compiler/ti-cgt-c2000_16.9.5.LTS/include" --advice:performance=all --define=FLASH -g --c99 --c++03 --cpp_default --float_operations_allowed=all --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="QuadRootsCode.d_raw"  "../QuadRootsCode.cpp"
2 Assembly Errors, No Assembly Warnings

>> Compilation failure
subdir_rules.mk:16: recipe for target 'QuadRootsCode.obj' failed
"C:\Users\spronse\AppData\Local\Temp\{49EAF2A7-EBF7-4289-AFCB-58329E32C26E}", ERROR!   at line 4091: [E0200] Block size 7 out of range 9..127
            RPTB      $C$L42,AR6            ; [CPU_] |284|

"C:\Users\spronse\AppData\Local\Temp\{49EAF2A7-EBF7-4289-AFCB-58329E32C26E}", ERROR!   at line 4417: [E0200] Block size 7 out of range 9..127
            RPTB      $C$L52,AR6            ; [CPU_] |53|


Errors in Source - Assembler Aborted

How do I solve this?

Thanks,

 EVS

QuadRootsCode.cpp