On Wed, Nov 2, 2016 at 2:27 PM, Ian Lance Taylor <i...@google.com> wrote:
> On Mon, Oct 31, 2016 at 7:46 AM, Uros Bizjak <ubiz...@gmail.com> wrote:
>> This function will be used in a follow-up patch to implement
>> TARGET_EXPAND_DIVMOD_LIBFUNC for x86 targets. Other targets can call
>> this function, so IMO it should be part of a generic library.
>>
>> 2016-10-31  Uros Bizjak  <ubiz...@gmail.com>
>>
>>     * Makefile.in (LIB2_DIVMOD_FUNCS): Add _divmoddi4.
>>     * libgcc2.c (__divmoddi4): New function.
>>     * libgcc2.h (__divmoddi4): Declare.
>>     * libgcc-std.ver.in (GCC_7.0.0): New. Add __PFX_divmoddi4
>>     and __PFX_divmodti4.
>
> You aren't defining divmodti4 anywhere, so it seems premature to add
> it to libgcc-std.ver.in.

It is created magically for x86_64, in the same way e.g. divti3 is created.

objdump of x86_64 libgcc.a:

--cut here--

...

_divmoddi4.o:     file format elf64-x86-64


Disassembly of section .text:

0000000000000000 <__divmodti4>:
   0:    41 57                    push   %r15
   2:    41 56                    push   %r14
   4:    49 89 f9                 mov    %rdi,%r9
   ...

--cut here--

Uros.

Reply via email to