[LLVMdev] [Compiler-RT] [ARM] Where __aeabi_[il]div0 builtins should be implemented?

Renato Golin
Fri, 05 Sep 2014 18:58:37 -0000

On 5 September 2014 19:10, Sergey Dmitrouk <sdmitrouk at accesssoftek.com>
wrote:
> #ifdef __ARM_EABI__
>     b __aeabi_idiv0
> #else
>     JMP(lr)
> #endif

Looks as though whomever implemented the call to __aeabi_idiv0 wanted
to be conservative for non EABI targets.

AFAIK, gnueabi targets recognize all EABI functions, so that should
work well. But I don't know about BSD, Darwin and other targets, how
they would behave if we assumed those functions were always there.

cheers,
--renato