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.

TMS570LC4357-EP: dividing by 0 does not report an error for uint64

Part Number: TMS570LC4357-EP

Hello,

Based on the following discussion I override __aeabi_idiv0 and __aeabi_ldiv0 functions definitions in my code.

e2e.ti.com/.../compiler-tms570ls0432-division-and-abi-helper-functions-from-runtime-library

As a result, I have the following output for division operations:

uint8 /0 operation calls overridden __aeabi_idiv0
int8 /0 operation calls overridden __aeabi_idiv0
uint8 %0 operation calls overridden __aeabi_idiv0
int8 %0 operation calls overridden __aeabi_idiv0
uint16 /0 operation calls overridden __aeabi_idiv0
int16 /0 operation calls overridden __aeabi_idiv0
uint16 %0 operation calls overridden __aeabi_idiv0
int16 %0 operation calls overridden __aeabi_idiv0
uint32 /0 operation calls overridden __aeabi_idiv0
int32 /0 operation calls overridden __aeabi_idiv0
uint32_t %0 operation calls overridden __aeabi_idiv0
int32_t %0 operation calls overridden __aeabi_idiv0
int64 /0 operation calls overridden__aeabi_ldiv0
int64_t %0 operation calls overridden __aeabi_ldiv0
uint64 / calls empty __aeabi_ldiv0  form ull_div32.asm
uint64_t % calls empty __aeabi_ldiv0  form ull_div32.asm

It looks like that for some reason ull_div32.asm contains already an empty definition of __aeabi_ldiv0 so it cannot be overridden.

Do you see some quick fix or workaround for this problem?  I'm using ti-cgt-arm_20.2.1.LTS compiler version.

Thank you for your help,
Regards,
Sebastian Sokolowski